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

Notifications

Announcements

No record found.

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,699

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,284 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,699 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans