Skip to Content
avatar image
Former Member

PowerBuilder DataWindow.Print.Preview causing unintended truncation

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 17, 2016 at 07:02 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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.

    Add comment
    10|10000 characters needed characters exceeded