Click here to Skip to main content
15,911,890 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Drawing Performance Pin
Mohammad Dayyan5-Dec-08 9:16
Mohammad Dayyan5-Dec-08 9:16 
QuestionHyperlinks in WPF seem enabled but do not open using XAML... what am I missing? Pin
Member 1854264-Dec-08 13:02
Member 1854264-Dec-08 13:02 
AnswerRe: Hyperlinks in WPF seem enabled but do not open using XAML... what am I missing? Pin
Mohammad Dayyan5-Dec-08 1:33
Mohammad Dayyan5-Dec-08 1:33 
QuestionDrawing with custom Pen Pin
pym4-Dec-08 2:54
pym4-Dec-08 2:54 
AnswerRe: Drawing with custom Pen Pin
Mohammad Dayyan5-Dec-08 1:28
Mohammad Dayyan5-Dec-08 1:28 
QuestionReport definition file can't be opened Pin
Arijit Manna4-Dec-08 1:29
Arijit Manna4-Dec-08 1:29 
GeneralRe: Report definition file can't be opened Pin
Pete O'Hanlon4-Dec-08 2:04
mvePete O'Hanlon4-Dec-08 2:04 
GeneralRe: Report definition file can't be opened Pin
Arijit Manna5-Dec-08 19:40
Arijit Manna5-Dec-08 19:40 
I am giving the relevant code :

Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles button1.Click
Dim ofd As OpenFileDialog = New OpenFileDialog()
ofd.Title = "Select report definition file"
ofd.Filter = "Report definition files (*.xml)|*.xml|All files (*.*)|*.*"
If (ofd.ShowDialog() = System.Windows.Forms.DialogResult.OK) Then
Try
' parse file and select report definitions
Dim reports As String() = C1.C1Report.C1Report.GetReportList(ofd.FileName)
If (reports Is Nothing) Or (reports.Length <= 0) Then
Throw New Exception(String.Format("File {0} has no reports definitions.", ofd.FileName))
End If
tbFileName.Text = ofd.FileName
c1DocumentViewer.FileName = ofd.FileName

cbReportName.Items.Clear()
Dim reportName As String
For Each reportName In reports
cbReportName.Items.Add(reportName)
Next
cbReportName.SelectedIndex = 0

Catch ex As Exception
System.Windows.MessageBox.Show(String.Format("Report definition file can't be opened, error:\r{0}", ex.Message), "Error", MessageBoxButton.OK, MessageBoxImage.Error)
c1DocumentViewer.ReportName = ""
c1DocumentViewer.FileName = ""
End Try
End If
End Sub

Please help ! Cry | :((

Best Wishes ....... ARIJIT

QuestionDesigning WPF application in VS-2008 Pin
NeCroFire4-Dec-08 0:03
NeCroFire4-Dec-08 0:03 
AnswerRe: Designing WPF application in VS-2008 Pin
Mark Salsbery4-Dec-08 6:17
Mark Salsbery4-Dec-08 6:17 
QuestionLinq To SQL & WPF Cascading Comboboxes Pin
Member 44002433-Dec-08 7:36
Member 44002433-Dec-08 7:36 
QuestionLooking for this type of component in silverlight.... Pin
Goalie352-Dec-08 4:47
Goalie352-Dec-08 4:47 
AnswerRe: Looking for this type of component in silverlight.... Pin
Ge3ks22-Dec-08 3:50
Ge3ks22-Dec-08 3:50 
QuestionPlaying a *.MP3 file in WPF ? Pin
Mohammad Dayyan2-Dec-08 2:11
Mohammad Dayyan2-Dec-08 2:11 
AnswerRe: Playing a *.MP3 file in WPF ? Pin
Mark Salsbery2-Dec-08 6:28
Mark Salsbery2-Dec-08 6:28 
AnswerRe: Playing a *.MP3 file in WPF ? Pin
Paul Conrad2-Dec-08 6:59
professionalPaul Conrad2-Dec-08 6:59 
AnswerRe: Playing a *.MP3 file in WPF ? Pin
Pete O'Hanlon2-Dec-08 9:01
mvePete O'Hanlon2-Dec-08 9:01 
GeneralRe: Playing a *.MP3 file in WPF ? Pin
Jammer2-Dec-08 22:55
Jammer2-Dec-08 22:55 
GeneralRe: Playing a *.MP3 file in WPF ? Pin
Mohammad Dayyan3-Dec-08 8:18
Mohammad Dayyan3-Dec-08 8:18 
QuestionSending dll Pin
Dushan1232-Dec-08 1:57
Dushan1232-Dec-08 1:57 
AnswerRe: Sending dll Pin
Pete O'Hanlon2-Dec-08 3:40
mvePete O'Hanlon2-Dec-08 3:40 
GeneralRe: Sending dll Pin
Dushan1232-Dec-08 9:00
Dushan1232-Dec-08 9:00 
GeneralRe: Sending dll Pin
Pete O'Hanlon3-Dec-08 4:13
mvePete O'Hanlon3-Dec-08 4:13 
GeneralRe: Sending dll Pin
Dushan1233-Dec-08 16:26
Dushan1233-Dec-08 16:26 
GeneralRe: Sending dll Pin
Dushan1233-Dec-08 17:55
Dushan1233-Dec-08 17:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.