1. Eric Verhorstert
  2. PowerBuilder
  3. Monday, 13 May 2024 12:48 PM UTC

Powerbuilder cloudpro edition Version 2022 R3 build 3289

 

Attached is part of a print screen. If we export the data window to PDF, the text 1083AKMR disappears. Other than this the export is correct.

If we do not rotate the computed field the export is corrrect.

 

Code for exporting the datawindow is:

adw_1.modify("DataWindow.Export.PDF.NativePDF.UsePrintSpec = Yes")
adw_1.modify("DataWindow.Export.PDF.Method = NativePDF!")
adw_1.saveAs(as_longfilename, PDF!, true)

 

Code for rotating the computed fields is:

idw_data.modify("compute_headerleft.font.escapement=1800 compute_headerleft.alignment= '0'")   // 105

idw_data.modify("compute_headerright.font.escapement=-1800 compute_headerright.alignment='1'")  // 1083AKMR

 

In pb.ini:

[PB]
pbescapementmode=1  //Don't know if this is still necessary. 

 

Anyone have an idea how to fix this?

Attachments (1)
Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Monday, 13 May 2024 15:08 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Eric -

I can reproduce the issue in PB 2019 R3 by simply setting the Font.Escapement property in the DW Painter to -1800 in the expression dialog box (I didn't try setting the escapement value via Modify). By changing the escapement value from -1800 to 1800 in the Painter, the text gets included in the PDF, so I suggest you use only positive numeric values for the rotational angle and see if that resolves the issue.

While it may not make a difference, please note that Escapement is specified as an expression, not as a simple, numeric property value, so I'm not sure if your Modify statements are syntactically correct. If you set the value in the Painter, then look at the exported source for the DataWindow, you'll see Escapement is expressed as:

    font.escapement="0~t1800"

In source form, an expression has the form: Default value, followed by a tab character, then the expression (value, in this case).

By the way, I do not see "pbescapementmode" included in the PB.INI documentation:

    https://docs.appeon.com/pb2022r3/pbug/PBINI_settings.html

The setting may or may not exist or be supported, but it is not documented.

Best regards, John

Comment
  1. Armeen Mazda @Appeon
  2. Monday, 13 May 2024 17:50 PM UTC
Interesting discovery John!
  1. Helpful
There are no comments made yet.
Eric Verhorstert Accepted Answer Pending Moderation
  1. Tuesday, 14 May 2024 05:39 AM UTC
  2. PowerBuilder
  3. # 1

Hello John,

 

Changing the value of -1800 to 1800 solved it. 

 

Thanks.

 

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 13 May 2024 13:47 PM UTC
  2. PowerBuilder
  3. # 2

Hi Eric;

  I would suggest creating a simple test case & opening a support ticket for this issue. Then attach the test case to the new ticket.

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.