Skip to Content
0

PowerBuilder DataWindow.Print.Preview causing unintended truncation

Oct 17, 2016 at 06:15 AM

285

avatar image

I have a DataWindow with a column with a height.autosize=yes property.

If DataWindows property Print.Preview is switched off everything looks as intended:

However if I switch the property on for a better representations of how the report will look on paper some text gets truncated:

Printing the DataWindow yields desired result, no text is lost, but user wants to see all the information oh the screen, not only on paper.

Versions tested on: 11.5.1 Build 5097

I also assembled a sample project to replicate the issue if needed: https://dl.dropboxusercontent.com/u/9196319/PowerBuilder/DWTEST.zip

preview-no.png (5.6 kB)
preview-yes.png (4.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

René Ullrich Oct 17, 2016 at 07:02 AM
1

This is an old powerbuilder problem and its depending from text to display, font, printer driver and zoom. It seems that powerbuilders calculation for text wrapping and needed size of the field are not always correct.

I don't have a solution. I implemented a print preview zoom option for users as workaround.

Share
10 |10000 characters needed characters left characters exceeded
Roland Smith Oct 18, 2016 at 12:57 PM
-1

Try making the fields a little wider so that all the info will fit on two lines.

Share
10 |10000 characters needed characters left characters exceeded