Crystal Reports XI / VB.NET
This took me ages to find a solution to this one. If you get:
when trying to load a Crystal Report into a viewer using VB.NET something like this:
.CrystalReportViewer1.ReportSource = ReportName
.CrystalReportViewer1.ShowFirstPage() ' Blows up here
then you should try the following:
Don't bother thanking me, no one else does... ;-)
Load report failed
when trying to load a Crystal Report into a viewer using VB.NET something like this:
.CrystalReportViewer1.ReportSource = ReportName
.CrystalReportViewer1.ShowFirstPage() ' Blows up here
then you should try the following:
- In Solution Explorer, right-click the project (NOT the solution),
- Add / Existing Item / "file of type" .RPT / Navigate to, and add the report to the project.
- Then, in the properties of the (new) report change "Copy to output directory" to "Copy Always".
Don't bother thanking me, no one else does... ;-)
Comments