1. Roland Smith
  2. PowerBuilder
  3. Tuesday, 23 January 2024 13:53 PM UTC

PB 2022 Build 1892

We changed the application object setting to force use of NativePDF across the entire app. Now we are having trouble with a very large report with lots of images on every page.

Is it possible to override this setting for a particular datawindow?

mike S Accepted Answer Pending Moderation
  1. Tuesday, 23 January 2024 14:02 PM UTC
  2. PowerBuilder
  3. # 1

seems like:

dw_control.Object.DataWindow.Export.PDF.Method

would do it.  Haven't tried it however.  I just have it all going to nativepdf

 

build 1892 seems pretty old.  might be less work to get a newer build (assuming it fixes your issues) as using the old ghostscript (or other 3rd party) would require installing the drivers?

Comment
  1. mike S
  2. Tuesday, 23 January 2024 17:15 PM UTC
are you able to not set it at the global level and set it at runtime on the datawindows? If you have a centralized object that handles saveas for you then it should be possible. this is the approach we took.

  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 23 January 2024 19:06 PM UTC
I like Mike's idea. Honestly, 1,600 pages is huge I think my Acrobat (not using PB) would crash trying to load that much of a document. I would print it out in 250 page batches and then use the PDFBuilder classes to stitch the several PDF files together.
  1. Helpful
  1. Roland Smith
  2. Wednesday, 24 January 2024 00:16 AM UTC
I have an object that can save to PDF using Ghostscript even when the application is set to NativePDF.

It prints the DataWindow to a PostScript file and then feeds it into gswin64c.exe using the same parameters that PowerBuilder does. I originally wrote it to save multiple DataWindows into one PDF.



We are likely moving to 2022-R3 for our May release. We only change versions once per year, mainly because all our customers would also have to upgrade InfoMaker.

  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.