Hello,
I have a different behavior when I print with NativePDF a portrait output between IDE and deployed.
When I run from the IDE the output is fine in portrait, but when I run from a deployed application the layout is smaller, not in full page, like in landscape.
I don't know how to handle it.
I have a pb.ini file into my app directory.
[Data Window]
NativePDF_Valid=1
NativePDF_IncludeCustomFont=1
Just before printing I set :
dw.Modify ("DataWindow.Export.PDF.Method = NativePDF!")
dw.Modify ("DataWindow.Export.PDF.NativePDF.PDFStandard = 1")
The default output is set to Microsoft Print to PDF + Portrait.
What should I check?
Thank you in advance.
Pierre
Please refer to PB help documentation.
CustomOrientation setting to 0 means the orientation which is set in the Print Specification page in the DataWindow object's Properties view.
You can check the following link for details
https://docs.appeon.com/pb2021/datawindow_reference/XREF_36021_Alphabetical_list.html#XREF_65778_Export_PDF_NativePDF_CustomOrientation
I suggest that you set this CustomOrientation in your code.
BTW, if you suspect that this is a PB issue and If you can reproduce it, kindly please report this issue to our ticket system: https://www.appeon.com/standardsupport/newbug so that it can be properly received and tracked.
Please also provide a sample PB test case (with PBT / PBL) when you submit it to the ticket system.
Regards,