From Visual Studio 2005, I have a form that contains a Crystal Reports Viewer control. At runtime, I create a new ReportDocument class and specify the 'report path and name' and the 'report paramenter value'. Then I set the viewer's ReportSource to the above class which loads the report into the viewer control. My question is: 'Is there a way to pass a string variable from Visual Studio to the report so I can print that variable in the report header?'
All of my reports are using SqlServer Stored procs and the parameter value I am sending above correlates to the parameter needed by the stored proc.