I have a report that is built from a stored procedure in Crystal Reports for .net using C#. The report shows all the rows retuned from the stored procedure with fiields from my database (SQL server 2000). I need to change the logo on top of the report using a parameter that the user selects in a windows form. The code to call the report is:
PMIIntransit orpt = new PMIIntransit();
orpt.SetParameterValue("@date1", dtpDate1.Value.ToShortDateString() + " 12:00:00 AM");
orpt.SetParameterValue("@date2", dtpDate2.Value.ToShortDateString() + " 11:59:00 PM");
crystalReportViewer1.ReportSource = orpt;
I can add a parameter to select between logo1.jpg or logo2.jpg like this
Where path will have the path to logo1 or logo2 but I don't really know how to change the picture path in the report.
Any help will be appreciate it.