Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Subreports on new piece of paper, duplex Post Reply Post New Topic
Author Message
bealem
Newbie
Newbie


Joined: 24 Feb 2010
Location: United Kingdom
Online Status: Offline
Posts: 4
Quote bealem Replybullet Topic: Subreports on new piece of paper, duplex
    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
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


Edited by bealem - 24 Feb 2010 at 5:36am
IP IP Logged
bealem
Newbie
Newbie


Joined: 24 Feb 2010
Location: United Kingdom
Online Status: Offline
Posts: 4
Quote bealem Replybullet 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

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.



IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.