-
Ross Wood
- PowerBuilder
- Thursday, 4 December 2025 05:07 PM UTC
Hi and TGIAF (Thanks God it's Almost Friday),
I'm using the new PDF print in 2025:
ldw_report = uo_tab_pane.of_get_selected_tab()
lpdf_doc = Create PDFDocument
ll_return = lpdf_doc.importdatawindow( ldw_report)
but before that I'm setting a few export properties:
ldw_report.Modify("DataWindow.Export.PDF.Method = NativePDF!")
ldw_report.Modify("DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'No'")
ldw_report.Modify("DataWindow.Export.PDF.NativePDF.CustomSize = 5") // e.g., 5 = 8.5x11 Letter in many builds
ldw_report.Modify("DataWindow.Export.PDF.NativePDF.CustomOrientation = 1") // 1 = Portrait, 2 = Landscape
But for some reason, the report is failing. I fixed it by going to the actual DW and changing the method to native PDF.
Do you know why the print doesn't come out when I set the export method to native PDF using the modify dynamically on this copy of the original DW?
Thanks
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.