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.