microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
732 stars 243 forks source link

Print should replace DynamicFileHandler.axd with the report caption #6218

Closed GrumpyNAVdev closed 3 years ago

GrumpyNAVdev commented 3 years ago

Describe the bug Printing from Business Central to a PDF printer results in the PDF printer to suggest this filename: "DynamicFileHandler.pdf" or "DynamicFileHandler.axd.pdf". That was not the case for NAV RTC and Classic, where it suggests the report caption, i.e.: "Sales - Invoice.pdf"

We are printing to a special PDF printer, which integrates to a document management system with OCR. The documents are in some situations sent to the customers and they find it very insecure opening mails with an attached file called "DynamicFileHandler.axd.pdf"

To Reproduce Steps and to reproduce the behavior:

  1. Open BC in Chrome
  2. Go to a Posted Purchase Invoice
  3. Press Print/Send -> Print -> Print...
  4. Set "Save as PDF" as Destination
  5. Press Save

You will now see a Save As window with the suggested filename "DynamicFileHandler.axd.pdf" You will see similar behavior using BullZip and other PDF printers.

AL Code to reproduce the issue REPORT.RunModal(406, true, false, Rec);

Expected behavior I would expect the filename to be i.e. "Purchase - Invoice.pdf" based on the report caption - just like in NAV.

Screenshots N/A

5. Versions:

kalberes commented 3 years ago

Not development environment related. Looks a runtime or base app issue

Hi! This issue concerns a production system. This repository is only for issues related to the AL compiler and developer tools of the latest developer preview environment for Dynamics 365 Business Central and we cannot guarantee a timely resolution of your issue. We suggest that you open a support case and work with our customer support team to gather all the information necessary to fix this problem.
Please read this post on how to file an issue: https://cloudblogs.microsoft.com/dynamics365/it/2019/09/25/new-process-to-submit-support-requests-for-dynamics-365-business-central/

AlexanderLundq commented 2 years ago

@GrumpyNAVdev Having the exact same problem. Did you ever find a solution to this?

GrumpyNAVdev commented 2 years ago

@AlexanderLundq No, we had to get a third party vendor to modify the external application to change the file name from BC before it was sent to customers.

aptMattKoe commented 10 months ago

Did somebody have a solution for this?