PDA

Click to See Complete Forum and Search --> : crystal reports and vb.net


aamir100
Sep 25th, 2008, 11:33 AM
i have writen small program to show crystal reports
i have added a form and a crystal report in expert mode and made a connection and loaded access database
crystal report is loaded successfully
i added crystal report viewer on form1
and i wrote folowing code in load event of form1

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
CrystalReportViewer1.ReportSource = AppDomain.CurrentDomain.BaseDirectory.ToString & "CrystalReport1.rpt"
End Sub


when i run this project a message box comes at start
"Load Report failed!"
but programs runs successfully
in visual studio crystal reports are installed
kindly tell me what is the problem
see attached file
thanks