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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplex printing

Status
Not open for further replies.

thread

Technical User
Mar 20, 2001
41
US
Hi - I have a report that I want to print duplex. I need to start each new record on a new piece of paper (odd page number - 1,3,5). Some of my records are one page, some are two pages. If the record is only one page, following another 1 page record, I want to force the record to a new, odd numbered page - Is there any way to do this? Thanks - Gail
 
first make sure that the group footer for the record has "New Page After" checked

then you might try putting this formula in the section for the header of the new record...in the conditional "New Page Before"

not inRepeatedGroupHeader and Remainder(pagenumber,2) = 0

this should skip a page if on an even page after printing a record and moving to a new page

 
Thanks - That was what I came up with also but it seems that for some reason (processing order?) Crystal ignores this very logical plan. I've tried setting variables to change on second page also to no avail - any other suggestions? - Gail
 
try putting "WhilePrintingRecords" infront of the formula

WhilePrintingRecords;
not inRepeatedGroupHeader and Remainder(pagenumber,2) = 0;

that should do it...Jim

 
Tried that too - Crystal takes the formula and then sweetly ignores it. - Gail
 
I hate that when it does it "sweetly" :)

Ok then the problem is that it isn't evaluating the pagenumber in a timely fashion

You could create a variable that is the value of the last pagenumber

and have that placed in the footer from which you are having the "New Page After"

So now if the variable is even it is ok if odd you want another page

@PageSplitVariable

numbervar Splitflag := pagenumber;

Place this in the footer and suppress it

In the "New Page Before" conditional

WhilePrintingRecords;
numbervar Splitflag;
not inRepeatedGroupHeader and Remainder(Splitflag,2) <> 0;

this might work better

 
Ok - So now I really am confused (like that's unusual?) All of these things should have worked - So . . . in complete frustration, I took out all of the formulas and clicked &quot;New Page Before&quot; on the header to prove that something was working . . . and guess what! no new page before! Is there something in Crystal that says if its already at the beginning of the page - don't skip a page? I am losing my mind on this one - it seems so simple and yet is so allusive! - Gail
 
try this....create a subsection of the header and place it ahead of the real one. Put a suppressed text box in it so there is something there but make it very thin so the subsection is as thin as possible but there. Let there be no restrictions on this subsection

Now keep the the real section with the conditional &quot;New Page Before&quot; in place.

maybe something has to be on the page before it will execute. I'm thinking Crystal may be smart enough to figure out that it has already split to a new page so it won't do it twice. But the subsection may trick it.
 
Oh - you are good! That works like a dream. Thank you so much!! (Aren't you glad Crystal thinks its so smart?!!) - Gail
 
Hi, I'm trying to implement duplex printing for CR v9.
And I'm really sorry to tell you that the previously described solution isn't working anymore. In fact, when you go to the section expert for the page header, you can't even select 'Insert New Page Before'. So I did it on the properties tab ... but, as stated before, no page break was inserted before the second header.
Is there anyone who knows how I can solve this problem?

Thanks!

Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top