Blow code am using to save the report in pdf format when I run the job its showing error.
(Pre-Processed RecId parameter not found. Cannot process report. Indicates a development error.
(S)\Classes\xInfo\add
(S)\Classes\Info\add - line 94)
SrsReportRun srsReportRun;
srsReportRun = new SrsReportRun("SCGSProjectInvoiceReport.SCGSProjectInvoiceDesign");
srsReportRun.init();
srsReportRun.reportCaption("SCGSProjectInvoiceReport.SCGSProjectInvoiceDesign");
srsReportRun.reportParameter("parmProjInvoiceId").value("PI-0000008");
srsReportRun.showDialog(false);
srsReportRun.printDestinationSettings().printMediumType(SRSPrintMediumType::File);
srsReportRun.printDestinationSettings().fileFormat(SRSReportFileFormat::PDF);
srsReportRun.printDestinationSettings().overwriteFile(true);
srsReportRun.printDestinationSettings().fileName(@"C:\MO\ProjectInvoicereport.pdf");
if( srsReportRun )
{
srsReportRun.executeReport();
}