Parameters in Crystal Reports

G

Guest

Hi,

I've a report made with crystal reports. And I need to use one parameter to
change the title of the report.

I’ve added the parameter to the report but when I run the program then
appear a dialog titled "Enter Parameter Values" where I have to write the
value. But I want to specify the value from my C Sharp code.

Can somebody help me?

Thanks,

Robe.
 
G

Guest

Do the following -
Dim rpDocDisplayReport As
CrystalDecisions.CrystalReports.Engine.ReportDocument = New
CrystalDecisions.CrystalReports.Engine.ReportDocument

rpDocDisplayReport.Load(<ReportFileName>)

rpDocDisplayReport.SetParameterValue(<ParameterName>, <ParameterValue>)

<reportViewer>.ReportSource = rpDocDisplayReport

Hope this helps. If you need more information please let me know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top