1. Thierry Del Fiore
  2. PowerBuilder
  3. Monday, 18 September 2023 13:31 PM UTC

HI,

just migrate from PB2019R3 to PB2022R2

We experience PDF generation downgrade in PB2022R2 with Ghostscript (9.5 or 10.02) and even if we print the DW with the Microsoft Print to PDF printer.

for example :

  • Text in white in the DW are print in black in the PDF.
  • checkboxes are very small in PDF and it's not possible to see if they are checked/unchecked.

Ghostscript / MS print to PDF used to work in PB2019R3

NativePDF seems to work in 2022R2 and reproduce the DW layout

 

Initial dw :

 

PDF with ghostscript and MS Print to PDF

 

 

Is this n PB2022R2 issue ? is there a way it can be solved/workaround (for some print we can switch to NativePDF but for the others we have no PDF export, just a print with Microsoft Print to PDF printer).

 

Best Regards

 

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 19 September 2023 18:59 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Thierry -

After assigning a new/different data object, have you tried setting/resetting any of the various Export.PDF.NativePDF.xxxxxx properties, such as UsePrintSpec or others? There are several properties that can be set... look in PB Help at the topics beginning with "Export.PDF.NativePDF"

Best regards, John

Comment
  1. Thierry Del Fiore
  2. Wednesday, 20 September 2023 07:33 AM UTC
Hi John,

The problem also occurs with "Real" printer.

It's a bug when both Themes and dw.dataobject code are used.

Appeon is in charge of the bug

Regards
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 20 September 2023 11:12 AM UTC
Yes, I saw the ticket. ;-)
  1. Helpful
There are no comments made yet.
Thierry Del Fiore Accepted Answer Pending Moderation
  1. Tuesday, 19 September 2023 10:04 AM UTC
  2. PowerBuilder
  3. # 2

The problem seems to be linked to the code : dw_1.dataobject = 'XXX'

Without changing the dataobject in the dw_control , it seems to work

PB Themes are also activated

DW TEST 

 

Print and PDF result

 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 19 September 2023 18:16 PM UTC
Hi Thierry;

Looks like the problem might be when a Theme is active on the App.

If you disable the use of any Theme on your test App - does it work OK then?

Regards ... Chris
  1. Helpful 1
  1. Thierry Del Fiore
  2. Wednesday, 20 September 2023 07:31 AM UTC
Hi Chris,

Indeed when Theme are disabled, it works.

It works also where Theme are enabled and no change of dataobject in the dw_control.

The problem occurs when both Theme and dw.dataobject = 'XXX' code is used.

Appeon has reproduced the bug and is in charge of the problem.



Thanks
  1. Helpful
There are no comments made yet.
kitty he @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 19 September 2023 02:17 AM UTC
  2. PowerBuilder
  3. # 3

Hi Thierry,

 

Can you submit a ticket with a small case that reproduces the problem so that we can further analyze and track it?

https://www.appeon.com/standardsupport/newbug

 

Regards,

Kitty

Comment
  1. Thierry Del Fiore
  2. Tuesday, 19 September 2023 10:01 AM UTC
Hi Kitty,

The newbug forms has been filled.

As i mentioned below the problem also appears in the "Real print" (checkboxes, text/colums color and backcolor, ....) .

seems to be linked to code dw_1.dataobject = 'xxx'
  1. Helpful
There are no comments made yet.
Markus Eckert Accepted Answer Pending Moderation
  1. Monday, 18 September 2023 15:07 PM UTC
  2. PowerBuilder
  3. # 4

Hi Thierry

Does this issue also occur when you print with a "real" printer, or only if you use the "Print to PDF" printer?

Regards,
Markus

Comment
  1. Thierry Del Fiore
  2. Tuesday, 19 September 2023 08:55 AM UTC
Hi Markus,



Good question, this was not tested before and indeed the "Real" print is also wrong.
  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.