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

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

  • Kauto Profile Picture
    2,654 on at
    RE: SSRS report controller write PDF to file prints a copy to a temp folder and the specified destination filepath - why?

    Fair enough

  • Verified answer
    Mea_ Profile Picture
    60,278 on at
    RE: SSRS report controller write PDF to file prints a copy to a temp folder and the specified destination filepath - why?

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,046 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans