- Jon Stoller
- PowerBuilder
- Tuesday, 14 August 2018 04:15 AM UTC
I am using PowerBuilder 2017. I need to create a PDF file in my application.
I am able to save a file as a PDF when I do it on my own PC. But the PDF does not get created on other systems where I installed the compiled application.
So my question is, how do I create and save a file as a PDF so it works on other systems?
The following is the code I use to save the file:
string ls_folderfile
integer li_return
ls_folderfile = "c:\pdf\pklist01.pdf"
ldw_rpt.Object.DataWindow.Export.PDF.Method = XSLFOP!
li_return = ldw_rpt.SaveAs(ls_folderfile, PDF!, true)
When I run this code on my PC, the PDF is successfully created.
When I run it on another system, the PDF is not created.
What is the problem.
What should I be doing to create the PDF file on other systems?
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.