Announcements
No record found.
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
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.
SrsReportEMailDataContract emailContract; emailContract = new SrsReportEMailDataContract(); emailContract.parmAttachmentFileFormat(SRSReportFileFormat::PDF);
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 658
André Arnaud de Cal... 468 Super User 2026 Season 1
Syed Haris Shah 333 Super User 2026 Season 1