- Jeong Hwan Jang
- PowerBuilder
- Thursday, 5 January 2023 09:13 AM UTC
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.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.