1. Matt Kluzak
  2. PowerBuilder
  3. Thursday, 23 September 2021 19:46 PM UTC

I have an app where a string is generated with specific line breaks and space formatting to create a text stamp that gets pasted into PDFs. This worked fine in both Foxit and Adobe PDF programs with Powerbuilder 2017. After migrating it to Powerbuilder 2019R3, I noticed that if the text gets pasted into a comment textbox that has a background, as opposed to a standard textbox without a background, the line breaks are lost in the formatting. Also, spacing before the first character in a line doesn't work; the spacing seems to stick to the end of the prior line.

The special formatting calls used in the string are char(10), which is Line Feed, and char(11), which is Vertical Tab. I tried using char(13), Carriage Return, but it didn't fix things. I also tried using  ~r and ~n but those do not give a proper result either.

The text is built as a string, which is then set as the text for a Rich Text Editor, then the string is set to the text of the Rich Text Editor, and finally the string is copied to the clipboard. I tried going directly from string to clipboard, but that also did not work.

I'm hoping for a quick fix to get this corrected, but if it's not possible with the 2019R3 build I am open to a better method of generating this text.

 

Thanks

 

 

Matt Kluzak Accepted Answer Pending Moderation
  1. Thursday, 23 September 2021 21:06 PM UTC
  2. PowerBuilder
  3. # 1

Hi Matt;

  Are you doing this into:

  1. A native PDF driver via low level Print() commands?
  2. Via a RichText Control or Data Window?
  3. Via a regular DWO (ie: Tabular, Freeform, Grid, etc)?

Also, can you attach a screen capture or two on what you are doing and what the current outcome?

Regards ... Chris

 

1. No. The text is being copied via the clipboard() command.
2. Rich Text Editor on the screen itself, not within a datawindow. The Text is being pulled from a datawindow, however.
3. The datawindow the text is being pulled from is freeform.

 

Here is what it looks like when built in the Rich Text Editor

 

Here is what it looks like when directly pasted into Adobe/Foxit, which puts it as a comment

 

Here is what it looks like when pasted into a textbox

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 23 September 2021 21:32 PM UTC
Which 3rd party Text Control (under the hood) are you using: TE, TX15 or TX28?
  1. Helpful
  1. Matt Kluzak
  2. Friday, 24 September 2021 14:41 PM UTC
Are you referring to the Rich Text Editor in Powerbuilder?
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 23 September 2021 20:18 PM UTC
  2. PowerBuilder
  3. # 2

Hi Matt;

  Are you doing this into:

  1. A native PDF driver via low level Print() commands?
  2. Via a RichText Control or Data Window?
  3. Via a regular DWO (ie: Tabular, Freeform, Grid, etc)?

Also, can you attach a screen capture or two on what you are doing and what the current outcome?

Regards ... Chris

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 23 September 2021 20:06 PM UTC
  2. PowerBuilder
  3. # 3

Please open a support ticket and provide reproducible test case.  Thanks.

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.