1. Sivaprakash BKR
  2. PowerBuilder
  3. Friday, 16 September 2022 13:17 PM UTC

Hello,

Current PB 2019 R3, 2703

Upgraded from PB 11.5

We upgraded one PB 11.5 application to PB 2019 R3.  Everything is working fine except PDF printing using Ghostscript.   That was the way we printed to a pdf file earlier.   

Along with this upgrade we formatted the server and re-installed everything a fresh.   So we don't have which version of Ghostscript was installed earlier and its configuration [ earlier installation was done around 7-8 years back ].  It was working fine till date.

Earlier OS :  Windows Server 2012 R2 - 32 bit,   Ghostscript version : No Idea
Current OS : Windows Server 2012 R2 - 64 bit,   Ghostscript version : 9.56.1 ( tried both 32 bit and 64 bit )

Path contains the gs\bin folder

dw_print.Modify("DataWindow.Export.PDF.Method = DISTILL! ")
ll_ret = dw_print.SaveAs(ls_filename, PDF!, false)

ll_ret is NOT returning 1.   

Any idea ?  

Happiness Always
BKR Sivaprakash

Note:  Cannot switch to nativepdf method immediately.  

 

Accepted Answer
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Monday, 19 September 2022 05:20 AM UTC
  2. PowerBuilder
  3. # Permalink

Thanks all,

Fortunately we could go with native pdf method here with just an addition of 4 lines in the code, as an option to switch to other method was there in the application.  First we thought it might take a day or two to implement the native method which (time) was not available to us.  

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 16 September 2022 21:20 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Sivaprakash -

   Use GPL Ghostscript v8.71 with PBv11.5.

     Download the attached gs871.zip file
      Rename the file to gs871.7z
      Download the free 7-zip compression tool
      Use 7-zip to uncompress the file.

   This is NOT an installer, it's the final, installed set of files for Ghostscript v8.71.; I could not find an installer for this.

   1. Follow the instruction above to get the folder & the exe
   2. Put the folder and the EXE under C:\Program Files\gs


   3. Add a new Environment/system variable:

   4. Add the following entries to the Registry:
          HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.71

 

Later -

Olan

Comment
  1. Sivaprakash BKR
  2. Monday, 19 September 2022 05:17 AM UTC
Thanks Olan.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 16 September 2022 15:23 PM UTC
  2. PowerBuilder
  3. # 2

Hi BKR;

  The newer version of GS is not compatible with your PB version & build. You can either...

  1. Install a slightly older GS version for now   // OR
  2. Upgrade to a new PB version where the latest GS is supported (ie PB2021/2022)

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.