I may be missing something obvious but I have a DW (with some nested reports)
I retrieve, set the properties
dw_invoice.Object.DataWindow.Print.Paper.Size = 9 // A4
dw_invoice.Object.DataWindow.Print.Orientation = 2 // portrait
When I retrieve/display the DW it's 1 page (I have a computed field for pages and it reports the number of correct pages)
But when doing a saveas("filename.pdf",PDF!,False) I get a PDF with 2 pages (the last row and footer is on the next page, while on the window there is only 1 page). I'm using NativePDF!
dw_invoice.Object.DataWindow.Export.PDF.Method = NativePDF!
I'm not changing margins, just saveas.
(also the resulting PDF is letter format not A4! but that would not be a problem if it reported the pages correctly)
(PB V2022 IDE 1892 Runtime 1878)