
Announcements
I’m sending an SSRS report by email from X++ using SrsReportRunController. The email sends fine and the attachment is created, but it always arrives as CSV even though I explicitly set the format to PDF.
SrsReportRunController controller = new SrsReportRunController();
controller.parmReportName(ssrsReportStr(BackStockReport, Report));
controller.parmShowDialog(false);
controller.parmLoadFromSysLastValue(false);
SRSPrintDestinationSettings settings = controller.parmReportContract().parmPrintSettings();
settings.printMediumType(SRSPrintMediumType::Email); // I've tried also File here
settings.fileFormat(SRSReportFileFormat::PDF); // Here
settings.fileName("Report attached");
I’ve already tried disabling dialogs and adjusting print destination settings, but nothing changes the output format.