Subreports on new piece of paper, duplex
Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=9210
Printed Date: 18 Apr 2025 at 9:45pm
Topic: Subreports on new piece of paper, duplex
Posted By: bealem
Subject: Subreports on new piece of paper, duplex
Date Posted: 24 Feb 2010 at 5:34am
Hi,
Using asp.net in Visual Studio 2005.
I've got a report with 3 subreports, set to print in duplex.
The main report simply contains the page header, and the 3 subreports in 3 details sections.
I need each subreport to start on a new piece of paper, which I have managed to get working by looking at this:
http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=7339 - http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=7339
and some trial & error got each subreport to start on a new piece of paper.
What I've done is on the mainreport header got the formula: shared numbervar pageNo := pageNumber;
Then in the Section 1 (Report Header a) of the 2nd & 3rd subreport, for the New Page After: shared numbervar pageNo; pageNo mod 2 = 0
This works great as each subreport starts on a new piece of paper.
The problem I now have is that say subreport1 is 3 pages, page 4 (the
new inserted blank page) will have the page header on, and nothing
else.
The page header is in the main report.
How can I suppress the page header on these "blank" pages between the subreports?
Cheers, Mike
|
Replies:
Posted By: bealem
Date Posted: 25 Feb 2010 at 6:51am
I've now solved this problem by taking a different approach.
I came across this after various web searches: http://www.c-sharpcorner.com/UploadFile/mahesh/SubReportPH10062006160749PM/SubReportPH.aspx - http://www.c-sharpcorner.com/UploadFile/mahesh/SubReportPH10062006160749PM/SubReportPH.aspx
Basically remove the page header from the main report, and create a group heading on each subreport that repeats on each page. Now when the formula above is true, there is now a blank page.
|
|