Hello all,
SetPointer(HourGlass!)
dw_1.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'
dw_1.Modify("DataWindow.Print.Paper.Size='255'") // Set custom paper size to inches
dw_1.Modify("DataWindow.Print.CustomPage.Width='42000'") //42.000 inches wide
ls_save_as_location = ls_file_path + "Exception Funds\" + gs_client_code + "_" + String(Today( ), "mmddyy") + ".pdf"
IF dw_1.SaveAs(ls_save_as_location, PDF!, True) = -1 THEN lb_was_error = True
SetPointer(Arrow!)
Thanks!
Jason Lipman
Jason
This was actually produced on the 8.5 x 11 paper size but I used the DW's Zoom property to zoom it down so that it would fit within the page size before creating the PDF. Once the PDF is created, the user can then use their PDF reader to zoom it up to a better visible size. So in essence, this was actually a workaround to your problem.
No matter if I picked 11 x 17 paper size or used custom paper size settings for the printer paper via PowerScript - the DWO seemed to ignore them and reverted back to my default printer's settings. So I definitely think that PB has a bug (limitation) in this area. Definitely worth opening a support ticket for this one IMHO.
Regards ... Chris
Jason