Parameters in Crystal Reports

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top