cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a parameter to Crystal Report in Visual Studio

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

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

Answers (0)