I have a crystal report which I need my application to generate. I can
do it like this:
ReportDocument thisReport = new ReportDocument();
thisReport.Load(inFilename);
thisReport.Refresh();
thisReport.ExportToDisk(ExportFormatType.PortableD ocFormat,outputFilename);
thisReport.Close();
This works perfectly. Now I have a crystal report that takes a
parameter called "FirewallId". I have tried to make the code like
this:
ReportDocument thisReport = new ReportDocument();
thisReport.Load(inFilename);
thisReport.SetParameterValue("FirewallId",25);
thisReport.Refresh();
thisReport.ExportToDisk(ExportFormatType.PortableD ocFormat,outputFilename);
thisReport.Close();
but I get missing parameter value. When I inspect "thisReports" fields
I am told there are two *more* parameters both called intid. Setting
them gives me errors - You cannot set parameters on linked fields and
not setting them gives me missing parameters error.
Can anyone help me please?