How do I load Crystal Report When I deploy it as .exe file
Heres my code:
Dim strReportPath As String = Application.StartupPath
myDataAdapter.Fill(myDataset, "Payroll")
Dim rep As New ReportDocument
rep.Load("C:/../Payroll.rpt")
rep.SetDataSource(myDataset)
Me.CrystalReportViewer1.ReportSource = rep
CrystalReportViewer1.Refresh()
My problem is how do i load it by not putting (C:/../,,Payroll.rpt) on rep.Load,,, I tried Application.StartupPath + "\Payroll.rpt" but doesnt work....
Plss... help.... Newbie :|
Heres my code:
Dim strReportPath As String = Application.StartupPath
myDataAdapter.Fill(myDataset, "Payroll")
Dim rep As New ReportDocument
rep.Load("C:/../Payroll.rpt")
rep.SetDataSource(myDataset)
Me.CrystalReportViewer1.ReportSource = rep
CrystalReportViewer1.Refresh()
My problem is how do i load it by not putting (C:/../,,Payroll.rpt) on rep.Load,,, I tried Application.StartupPath + "\Payroll.rpt" but doesnt work....
Plss... help.... Newbie :|