Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Hiding Sections

Status
Not open for further replies.

jms8142

IS-IT--Management
Dec 3, 2001
16
US
I am using Crystal 6.
My question is this: Is it possible to somehow reference the page number of specific sections or fields or any objects (once the report has been rendered)? I have a number of sections each comprised of an empty underlined text object (intended as a comments section for users to annotate after printing) with the intention of adjusting the amount of rows in relation to the length of the report so as not to move on to two pages.
I can add the
If TotalPageCount > 1 then Surprises
but this will also hide the sections on the first page.
I would like to refer to each section or text object specifically and check if it is on a page greater than 1 and suppress it if so.
Any ideas?
 
TotalPageCount refers to the number of pages in the report, and is only know once the report is completly rendered.

PageNumber refers to the current page of the object. and is known as each page is rendered.

However, to get the suppress to happen based on a page number, you have to get to page 2, which is when it starts suppressing, and thus you get blank page each time.

The way to do what you want is to determine how much can fit on page 1, and create a variable counter that resets at the top of each page. When the counter gets close to the limit you start suppressing BEFORE the next page is started. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top