I've been trying to build a simple vb.net app that basically displays already built .rpt reports in a crystalreportviewer. No matter how many times I try to code it, I run into problems. Some reports have worked, others have thrown errors such as load report failed, invalid path, etc.. All of the reports work when I run them in crystal.
Ideally, I'm looking to just have a menu with report names, and a crystalreportviewer where the user can click a report, and the app prompts them for parameter values.
I'm currently working with crystal 9 I believe, and vs.net 2003, or I have access to 2005 as well.
Can someone help me with this, or explain why I'm running into problems? Nothing has been consistent – I'm at a loss right now.
Help is highly appreciated!! thanks in advance
Best Answer
You need to get them all working in the development environment, then on the client side, make sure the dependent files are installed and the network drive names are mapped consistently if your code's dependent on it.
Here's an example in VB.NET 2005:
the form frmCrystal contains one CrystalReportViewer control:
Then to call the form, you need something like: