Skip to Content
0
Former Member
Jun 04, 2015 at 11:15 AM

Diffrence in layout between Print Preview and PDF file

218 Views

Hi,

I am using PB.11.2 and I am trying to export an A4 size data window report into pdf file . After exporting the layout is going to different layout than the layout in print preview. Please can you advise me how to fix this issue .

The following is my script.

dw_1.Object.DataWindow.Export.PDF.Method = Distill!

dw_1.Object.DataWindow.Printer = 'CutePDF Writer'

dw_1.Object.DataWindow.Export.PDF.Distill.CustomPostScript="Yes"

li_ret = dw_1.SaveAs(ls_attach, PDF!, true)