Hi all,
I am working with VB 8 - 2005 and Crystal Reports. However, I can't make my report display any data from my Access DB.
It is somewhat funny, though, since in the crystal report viewer in which the reports is embedded, strange fields like dates and names of the week appear, but these have nothing to do with the data in the DB.
This code fragment comes from the click event o f a button, my idea was to load a report when click occurs, however, nothing happens. No report or data fields from my db is displayed
<!-- beginning of code -->
Main.reportDocument1.FileName = "F:\inventoryDatabase\Inventory_Database\WindowsApplication1\CrystalReport1.rpt"
Main.reportDocument1.Load(
"F:\inventoryDatabase\Inventory_Database\WindowsApplication1\CrystalReport1.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)
CrystalReportViewer1.ReportSource = Main.reportDocument1
CrystalReportViewer1.RefreshReport()
Me.CrystalReportViewer1.Update()
<!-- end of code -->
Please provide me with a sample code, if you have any.
Willing to provide any details.
Thanks beforehand.
JCortez