1. Jon Stoller
  2. PowerBuilder
  3. Tuesday, 21 August 2018 21:04 PM UTC

I am using NativePDF! to create PDFs in my application. 
It works on my PC (it is Windows 10).
However, it does not work on most of my user's PCs running the application. 
It works on some, but not others where it does not create the PDF.

An example of the code is the following:
  ldw_rpt.Object.DataWindow.Export.PDF.Method = NativePDF!
  ldw_rpt.Object.DataWindow.Export.PDF.NativePDF.CustomSize=0
  li_return = ldw_rpt.SaveAs(ls_folderfile, PDF!, true)

(ls_folderfile is the location and name of the PDF file)

When it works, li_return = 0
When it does not work, li_return = -1

Do you have an idea of what the problem might be.

Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Monday, 3 September 2018 08:33 AM UTC
  2. PowerBuilder
  3. # 1
Hi Jon,

Please check that you have installed the PowerBuilder Runtime on the client computer.
Also make sure that the file pbpdf170.dll is deployed to your application folder as well.

Regards,
Mark Lee
Comment
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 22 August 2018 09:54 AM UTC
  2. PowerBuilder
  3. # 2

Hi Jon,

  1.  Please check and see if you are on the latest PB, i.e. PB 2017 R3 build 1858. In this latest release a bug that setting Arabic as the regional language caused failure in generating PDF with NativePDF was fixed.  So if you are not on this latest release, please upgrade it to this latest release and try again and see if it works.

You may download and install this latest release from our Downloads portal at https://www.appeon.com/user/center/index?menu=download  (requires login) or you may manually go to the Downloads portal from Login (to the Appeon Website) > User Center (under your login user icon) > Downloads.

  1. Please make sure that you have write permission over the %temp% folder on the current PC.
  2. Please copy the attached log.ini to the %temp% folder (default directory:C:\Users\appeon\AppData\Local\Temp)and then try to generate PDF file with NativePDF. Log files will be generated in this folder and please provide those generated log files for further analysis.
  3. Please let us know your Operation System and the system language: (e.g. 32-bit Window 7, English).

What’s the difference between those PCs that work and those that don’t?

  1. Kindly please report your PB issue via our support ticketing system to ensure it is being properly received by our tech support and tracked at: https://www.appeon.com/standardsupport/

     Please attach the log files generated (mentioned above) when opening the ticket. Thanks in advance.

 

Regards,

Mark Lee

Attachments (1)
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 21 August 2018 22:06 PM UTC
  2. PowerBuilder
  3. # 3

Hi Jon;

  Make sure that the App user has folder write privileges as the NativePDF feature creates an interim temporary EMF image file during the PDF processing.

  If you have PB2017, the EMF file is created in the same folder as the PB App. In PB2017R2, the EMF file is created in the same folder as the PDF is being created into.

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.