Hi,
I know this has been resolved over the years of powerbuilder and exporting datawindow to pdf. But somehow, it gives me a hard time doing it. I can manage to export the datawindow contents to pdf using this script:
dw_printer.retrieve(s_cpno)
dw_printer.Modify("DataWindow.Export.PDF.Method = XSLFOP! ")
dw_printer.Object.DataWindow.Export.PDF.Distill.CustomPostScript="No"
dw_printer.SaveAs("C:\appdir\" + s_cpno + ".pdf", PDF!, FALSE)
The pdf output is as the same as the datawindow layout but I encountered problems when i put images and exporting it:
1) when exporting to pdf the layout of the data window gets different. The header of the first page is normal but when you reached the 2nd page, it's header data is missing.
2) The image is not displaying any images but if preview using datawindow, the image is there but not on the exported to pdf.
I have tried installing ghostscript but unfortunately the organization's UAC prohibits mo to do so because, it'll be deployed to client pc whose cannot be bothered by changing default printers from there and then.
i have attached the images. pdf1 and pdf2 are the exported data from the datawindow, the pdf3 is the design of the datawindow that supposedly be showing.
please help me in resolving this.
Im using Powerbuilder 2019 and Powerbuilder 12.5 side by side.
the current version deployed to clients were 12.5 and has a plan on upgrading to 19.
Thanks and God bless!
can you guide me on how to do this on pb12.5?