1. Philip Troise
  2. PowerBuilder
  3. Tuesday, 16 March 2021 14:35 PM UTC

Last issue before releasing my application using R3.

 

Below SaveAs command returns a -1 to li_ret.

This works on the computer where R3 is installed using gs8.63 GhostScript

The same code works under Powerbuilder 2019 Runtime using gs8.63 GhostScript.

 

Tried ...

I just tried using gs9.53.3 GhostScript for R3 Runtime. Still not working

I just loaded the entire contents of Runtime 19.2.0.2670 folder in R3 into my folder containing the runtime R3

Still giving me same error.  

 

dw_dataWindow.Object.DataWindow.Export.PDF.Method = Distill!

li_ret = dw_dataWindow.SaveAs(ls_path, pdf!, true)

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 16 March 2021 18:36 PM UTC
  2. PowerBuilder
  3. # 1

Hi Philip;

  For GhostScript ...

  1. Make sure that you have the GS "Bin" folder in your System Path...
    • Example:  C:\Program Files\gs\gs9.23\bin
  2. Also make sure that you set the GS environment DLL location ...
    • Example: GS_DLL=C:\Program Files\gs\gs9.23\bin

HTH

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Saturday, 27 March 2021 15:01 PM UTC
Hi Philip;

FWIW: I upgraded all my PC's to GS 9.53.3 last week. All PB versions (12.6 thru 2021 beta) are working well with this release on my W10 20H2 version. Also tested this combination on Windows 2016 & 2019 VMs with PB2017R3, 2019R2/R3 & PB2021. No issues.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 16 March 2021 14:48 PM UTC
  2. PowerBuilder
  3. # 2

Probably you are missing the required runtime files or the runtime wasn't updated properly to 2019 R3 version.

Have you tried the new NativePDF option instead of GhostScript?

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 16 March 2021 15:27 PM UTC
Sorry, I don't know. Might be an environment config issue. Try the NativePDF it is much simpler to install/config. You just need to include pbpdf.dll runtime library.
  1. Helpful
  1. Philip Troise
  2. Saturday, 27 March 2021 11:58 AM UTC
I went with this solution. I never figured out the original problem. This solution is great as long as it works in all cases.for now it seems too. Thank You.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Saturday, 27 March 2021 13:51 PM UTC
Glad to hear that! You’re welcome!
  1. Helpful
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.