I have a report that has a subreport in each detail section. The subreport can grow and so I never know how long it is going to be. It may span to a second page. If it does then I need to reprint some of the detail section on the second page.
I am handling this by adding a detail section b. If the subreport spans to the second page then I print the detail section b which has the fields that I need.
I have a forumula at the beginning of section a that says this:
WhilePrintingRecords;
shared booleanVar RePrintCoName;
RePrintCoName := False
and then I have a forumula in the page footer that does this:
WhilePrintingRecords;
shared booleanVar RePrintCoName;
RePrintCoName := True
I then do a suppress on detail section b if RePrintCoName is false. My problem is that it always suppresses detail section b no matter what. I had tried this with global rather than shared and then it never suppressed section b no matter what.
Can anybody give me a hand here?
I am handling this by adding a detail section b. If the subreport spans to the second page then I print the detail section b which has the fields that I need.
I have a forumula at the beginning of section a that says this:
WhilePrintingRecords;
shared booleanVar RePrintCoName;
RePrintCoName := False
and then I have a forumula in the page footer that does this:
WhilePrintingRecords;
shared booleanVar RePrintCoName;
RePrintCoName := True
I then do a suppress on detail section b if RePrintCoName is false. My problem is that it always suppresses detail section b no matter what. I had tried this with global rather than shared and then it never suppressed section b no matter what.
Can anybody give me a hand here?