1. Scott Gorke
  2. PowerBuilder
  3. Tuesday, 29 October 2019 21:33 PM UTC

We have a datawindow that takes on a ton of Modify statements depending on how much data is in a certain record. We fixed the code so that data doesn't straddle pages in print preview, but when we send it to the printer or to a PDF, there is a bit of page straddling (say, some data prints near the footer of page 4 and the rest prints near the header of page 5). Any advice you folks can give is appreciated.

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 30 October 2019 00:28 AM UTC
  2. PowerBuilder
  3. # 1

Have you tried to set 'print preview' on and see how the dw looks?

.Object.DataWindow.Print.Preview='Yes'

(Just a thought).

Comment
There are no comments made yet.
John Barrett Accepted Answer Pending Moderation
  1. Tuesday, 29 October 2019 22:41 PM UTC
  2. PowerBuilder
  3. # 2

Not sure if it applies in your case, but if you are using a nested datawindow which straddles 2 pages, this will push it all to the 2nd page:

dw_report.modify("DataWindow.PushCutControlToNextPage=yes")

 

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.