Hi Everyone, I want to know how to print Custom SSRS report to multiple copies in PDF format. I have tried the below code in Controller class but it is not working
controller.parmArgs(_args);
controller.parmReportName(ssrsReportStr(SONSalesInvoiceSITLSSL, SITLSalesInvoiceReport));
sonSalesInvoiceContract = controller.getDataContractObject('sonSalesInvoiceContract');
printSettings = controller.parmReportContract().parmPrintSettings();
parmContract = controller.parmReportContract().parmRdpContract();
numofPages = sonSalesInvoiceContract.parmNumbofPages();
printSettings.printMediumType(SRSPrintMediumType::File);
printSettings.numberOfCopies(numofPages);
printSettings.fileFormat(SRSReportFileFormat::PDF);
printSettings.fileName("SalesInvoiceReport");
printSettings.overwriteFile(true);
printSettings.printLandscape(false);
controller.startOperation();
*This post is locked for comments
I have the same question (0)