Crystal Reports 10
MS SQL Server 2008 R2.
Two Show/Hide Headers are in the main report, grouped by XX.
Header 1 shows for page 1 for each new subject in group, else hidden.
Header 2 shows for all additional pages for each subject in group, else hidden.
E.g.,
Header 1
Group XX, A subject, page 1 only, else hide.
Header 2
Group XX, B subject, page 2 onwards, else hide.
Pagination returns to page 1 after the final record in the detail for each subject.
After the last record for the entire group XX, I have a cross-tab in the Footer.
I want to hide Header 1 on page 1 of the crosstab display.
Header 1 is already hidden for pages 2 and onwards because of the hide logic in place.
I am using the Variable:
Shared NumberVar PageofLastField;
If OnLastRecord then PageofLastField := PageNumber;
Then, placing the following code in the header section that I wish to hide:
Shared NumberVar PageofLastField;
PageofLastField := PageofLastField;
if pageofLastfield = 1 then false
else
if pageofLastfield <> 0 and PageNumber > PageofLastField
THEN TRUE
ELSE FALSE
However, this isn't exactly what I need because, of course, the Header appears where the page numbering for the cross-tab pages reverts back to one.
What solution can I use to hide Header 1 on the first page of the cross-tab?
Thanks!
MS SQL Server 2008 R2.
Two Show/Hide Headers are in the main report, grouped by XX.
Header 1 shows for page 1 for each new subject in group, else hidden.
Header 2 shows for all additional pages for each subject in group, else hidden.
E.g.,
Header 1
Group XX, A subject, page 1 only, else hide.
Header 2
Group XX, B subject, page 2 onwards, else hide.
Pagination returns to page 1 after the final record in the detail for each subject.
After the last record for the entire group XX, I have a cross-tab in the Footer.
I want to hide Header 1 on page 1 of the crosstab display.
Header 1 is already hidden for pages 2 and onwards because of the hide logic in place.
I am using the Variable:
Shared NumberVar PageofLastField;
If OnLastRecord then PageofLastField := PageNumber;
Then, placing the following code in the header section that I wish to hide:
Shared NumberVar PageofLastField;
PageofLastField := PageofLastField;
if pageofLastfield = 1 then false
else
if pageofLastfield <> 0 and PageNumber > PageofLastField
THEN TRUE
ELSE FALSE
However, this isn't exactly what I need because, of course, the Header appears where the page numbering for the cross-tab pages reverts back to one.
What solution can I use to hide Header 1 on the first page of the cross-tab?
Thanks!