Welcome! Log In Create A New Profile

Advanced

Suppressing Breaks and page height

Posted by Jimbo 
Jimbo
Suppressing Breaks and page height
May 24, 2009 10:19AM

Hi,

using some selection criteria I can suppress BODY lines of the report by using ReportXYZ.BODY..visible = False and allow them to be printed by REPORTXYZ.BODY..visible = True. This works fine and the page is fully filled though some BODY-lines are not printed. Page height is calculated OK by the report.

However, when doing the same with BREAKs, i.e. REPORTXYZ.BREAK1..visible = False then BREAK is missing, which is OK, but the calculation of the report's page height is not working anymore => the page prints less lines than other pages. Is there a fix?

Kind regards,
Guenter
Louis Verbraak
Re: Suppressing Breaks and page height
May 25, 2009 09:28AM
Hello Guenter,

Do you use iSkipPage? Did you trace iPageHeightLeft?
Perhaps you can use an Iteration block for the break and print this (or not) depending on your needs.

HTH.
Jimbo
Re: Suppressing Breaks and page height
May 25, 2009 10:37AM
Hi Louis, no, I did not look at iPageHeightLeft because I can simply see that the height of the invisible Break is added to the white space at the end of the page. I want to suppress the break whenever there are no lines in the Body to be printed (= all are set to invisible), this requires quite a lot of code lines to know it before the lines are to be printed, but the result would be a much nicer listing. It works fine, but PC Soft decided to deduct the height of the invisible Break from the remaining space of the page. Interestingly, invisible Body lines are not deducted from iPageHeightLeft and that makes sense ..

Could I add that space to the iPageHeightLeft(..) ?? Is it possible?

Kind regards,
Guenter
Louis Verbraak
Re: Suppressing Breaks and page height
May 25, 2009 10:48AM
Hello Guenter,

Perhaps you can change the cursorposition with iYPos().
Jimbo
Re: Suppressing Breaks and page height
May 25, 2009 11:44AM
HI Louis, I'll try this afternoon & let you know. That seems to be a way to go!
Thank you! Guenter
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: