1. Padmagowri Chandrasekaran
  2. PowerBuilder
  3. Thursday, 6 October 2022 07:28 AM UTC

Hi Team,  We have a request to add a new column to a data object. After adding a new column, the datawindow does not show the entire screen columns due to print specifications. I have tried modifying the margins and paper specs but still no luck. How to adjust the print specification to show the entire datawindow columns. Please address this as soon as possible. Thanks in advance.

 

Thanks,

Padma

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Thursday, 6 October 2022 07:45 AM UTC
  2. PowerBuilder
  3. # 1

Padma,

You can set printpreview = no with
dw_1.Modify("DataWindow.Print.Preview = no")

Be aware that the columns beyond the paper size will print in the next page!

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Thursday, 6 October 2022 14:35 PM UTC
  2. PowerBuilder
  3. # 2

you can also set the 'zoom' setting in the datawindow.  anything under 100% will shrink the data which will allow it to fit on a page

 

or change the size of columns until it fits

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 6 October 2022 18:48 PM UTC
  2. PowerBuilder
  3. # 3

Hi Padma;

  I am confused as that is what the DataWindow Control's "Scroll bars" are for. Changing Print Specifications does not control the DWO's display on the screen but, only how it gets formatted for the Printer when printing. +

Maybe you can elaborate on your issue some more & also add some screen captures to clarify?

Regards ... Chris

Comment
There are no comments made yet.
Padmagowri Chandrasekaran Accepted Answer Pending Moderation
  1. Friday, 7 October 2022 05:53 AM UTC
  2. PowerBuilder
  3. # 4

Hi All,

Thanks all for your suggestions. We had a trouble showing the entire columns on the datawindow when running the application as because the datawindow has been turned on with print preview option and hence it was, trying to show the preview of how the print is going to be with default printer settings.  I tried turning off print preview and after which, the entire columns were properly shown but the user's request is to always preview the print on the datawindow before event they print so I decided to change the paper size which can accommodate all the datawindow columns and after which, the problem got sorted out. 

 

Thanks & Regards,

Padma

Comment
  1. Sivaprakash BKR
  2. Monday, 10 October 2022 07:45 AM UTC
Glad that the issue is resolved. Can you take your time to mark this issue as resolved.

Thanks.
  1. Helpful
  1. Padmagowri Chandrasekaran
  2. Monday, 10 October 2022 07:50 AM UTC
Yes please close the issue
  1. Helpful
  1. Sivaprakash BKR
  2. Monday, 10 October 2022 11:17 AM UTC
Padma

Only you can close this thread. There are two ways to close it

1. Accept as answer.

2. Mark Resolved.

Hope these two options are not tough to find. You can choose one and close this.

Thanks.

  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.