Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

How to save the report as PDF format using x++

$
0
0

 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();
}


Viewing all articles
Browse latest Browse all 175888

Trending Articles