web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Send email with report attached as PDF with x++ in D365FO

(0) ShareShare
ReportReport
Posted on by 505

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.

I have the same question (0)

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 846 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 580 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 328 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans