I have a grid data window with a picture on it (with A4 page size), and I would like to export both the data and the image as a file (one page) PDF. I used several combinations of the following commands, but at best I got a pdf file of size 0.
//dw_1.Modify("Datawindow.Export.PDF.Method = Distill! ") //dw_1.Modify("DataWindow.Export.PDF.Method = XSLFOP! ") dw_1.Object.DataWindow.Export.PDF.Method = Distill! //dw_1.Object.DataWindow.Printer = "\\prntsrvr\pr-6" dw_1.Object.DataWindow.Export.PDF.Distill.CustomPostScript="No" dw_1.SaveAs("c:\dw_one.pdf", PDF!, false)
The user manual (on page 533) says:
… the data is printed to a PostScript file and automatically distilled to PDF using GNU Ghostscript…
Installing Ghostscript
For licensing reasons, Ghostscript is not installed with PowerBuilder. You (and your users) must download and install it before you can use this technique…
Does anyone know what a procedure is?
CHANGE THANKS TO YOU ALL. Just install ghostscript. I can’t understand why the procedure is executed on some personal computers (using the = XSLFOP method!) Without using ghostscript: - /
pdf powerbuilder datawindow
George dontas
source share