on 01-26-2016 3:10 PM
I have a crystal report that I created outside of visual studio that I'm now trying to integrate into visual studio.
I added a new item to my project, and I chose a crystal report. I then selected the report to be an existing one.
That created an item called CrystalReport1.rpt to my project.
I then created a window form(frmview.cs) and added a CrystalReportViewer control and set it up so it uses my crystal report
The report works just fine, but I don't know how to pass a parameter to the report. The parameter is received utilizing a 3rd parties API and is in a class I created called SupplierContactInfo.cs.
Inside this class I can open the windows form that has the report using the following code:
But I don't know how to take the value in the string parameter SupplierID and pass it to the crystal report that's in my FrmViewer window form.
Any help would be greatly appreciated.
I'd recommend having a look at the following doc:
Crystal Reports for Visual Studio 2005 Walkthro... | SCN
(Applies to all versions of .NET and CR).
Also, see the following:
SAP Crystal Reports .NET SDK Developer Guide
SAP Crystal Reports .NET API Guide
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter
Got Enhancement ideas? Use the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.