I have a batch job and I have created a simple query based ssrs report.
I have added the following code in the service class after adding my logic and have called the report.
But facing error as Stack trace: Cannot run form on non interactive session.
I want to see the report in print archive
SrsReportRunController controller = new SrsReportRunController();
SRSPrintDestinationSettings printSettings;
controller.parmReportName(ssrsReportStr(TestSimpleReport, AutoDesign1));
controller.parmShowDialog(false);
controller.parmExecutionMode(SysOperationExecutionMode::Synchronous);
printSettings = controller.parmReportContract().parmPrintSettings();
printSettings.printMediumType(SRSPrintMediumType::Archive);
controller.parmReportContract().parmPrintSettings(printSettings);
controller.startOperation();

Report
All responses (
Answers (