Crystal Reports XI / VB.NET

This took me ages to find a solution to this one. If you get:

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:
  1. In Solution Explorer, right-click the project (NOT the solution),
  2. Add / Existing Item / "file of type" .RPT / Navigate to, and add the report to the project.
  3. Then, in the properties of the (new) report change "Copy to output directory" to "Copy Always".
Also, it was suggested that you try using the full pathname in "ReportName".

Don't bother thanking me, no one else does...
;-)

Comments

Popular posts from this blog

"The delivery extension for this subscription could not be loaded" when using SSRS

Oooh, look, an Eagle...

What else could possibly go wrong?