-
APEX SUPPORT
- PowerBuilder
- Wednesday, 22 April 2026 01:37 AM UTC
Our PowerBuilder application (PB2022 R3) includes an invoice print screen. During printing, we dynamically generate the file name (ls_doc_name) via embedded SQL and assign it to the DataWindow using:
dw_doc_layout.Modify("DataWindow.Print.DocumentName = '" + ls_doc_name + "'")
dw_doc_layout.Print(TRUE, TRUE)
Previously, when saving the PDF output, the generated file name (ls_doc_name) was automatically populated in the Save As dialog. After migrating our front‑end application to the Cloud environment and moving from Adobe Acrobat to Office 365 PDF handling, the filename is no longer auto‑populating.
Note: We have tested this in our local environment with Adobe Acrobat pdf, it is also not populating the filename.
We need guidance on restoring the expected behavior so that the dynamically generated filename appears by default in the Save As dialog.
Please find the below attached screen shot for the automatic file name population while printing the invoice document.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.