Hi, everyone.
I try to save datawindow to PDF using SAVEAS() method. (Powerbuilder 2019 R3)
The script is as below,
-------------------------------------------------------------------------------------
dw.Retrieve()
ls_fileName = ".\Attach_File.PDF"
filedelete(ls_fileName)
dw.Saveas(ls_fileName, PDF!, True)
if FileLength(ls_fileName) = 0 then
messagebox("Warning", "An Error occured. File size is 0.")
return
end if
------------------------------------------------------------------------------------
It's working well on my developing pc.
But on one of client pc(Windows7 64bit), the PDF file is created and the file size is zero.
Do you have any idea with this problem?
I'm looking forward to your help.
Thanks.
FWIW: I have been using GhostScript via the Distill option for decades and never needed to use Admin Rights. In fact, that does not maker sense as the GS driver becomes part of the O/S print divers that are handled buy the O/S itself. Thus, does not require any PB Apps to be run in Admin mode (and never has).
Regards ... Chris
From the link I posted I got this information, not sure if it might be wrong:
https://docs.appeon.com/pb2019r2/pbug/ch20s03.html#Saving_as_PDF_using_PDFlib
System requirements for the Distill! method
Users must have administrative privileges to create a PDF file.
regards