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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

SSRS report controller write PDF to file prints a copy to a temp folder and the specified destination filepath - why?

(0) ShareShare
ReportReport
Posted on by 2,724

Hi,

I have overridden the outputReport method of the CustAccountStatementExtController class to alternate custom print settings based on a status flag relevant to the customer account being processed.

My code is fine and works however I have a query, the code will switch the controller to output a certain customer's statement to PDF file and then back to a selected printer, on the write to PDF, it is creating the file inside a temporary folder first and then writing the file again out to the specified filepath which is stipulated in the SRSPrintDestinationSettings fileName method.

This then creates a raft of temporary folders for each customer being processed.

Is there any better way I can prevent the temporary folder and first PDF being output and only have it output to the fileName/path specified in the print destination settings?

Thanks

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    You can modify framework to delete files straight after that, but it is easier just to cleanup temp folder periodically without any AX customizations.

  • Kauto Profile Picture
    2,724 on at

    Fair enough

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 662 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 660

#3
Subra Profile Picture

Subra 489

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans