views:

589

answers:

2

I have a report where the first page has a certain top and bottom margin. Every page after that will have a different margin from the first. Is there a way to do this in Crystal Reports in Visual Studio 2008?

A: 

I don't know if it's in the Crystal Reports version included with Visual Studio 2008, but in the full Crystal Reports 2008 there's a new bit on the Page Setup screen for conditional margin formulas, allowing you to set the margins based on a formula. Referenced here :

http://www.forumtopics.com/busobj/viewtopic.php?t=134480

CodeByMoonlight
+2  A: 

I assume every page, except for the first, will have the same page margins?

In that case you can simply add two page headers and page footers and simply use a suppress formula such as pagenumber = 1 and pagenumber <> 1.

dotjoe
That was going to be my suggestion, but it appears to be more complex.
OMG Ponies
Okay, after more research, I need to do this not after every page, but after every 2nd page of every record (not page). If the report has multiple records, every page after the new record needs to unsuppress the header. Ideas please?
asp316
So you have a group header (set to repeat on every page) that needs to change size on the second page? I think you could use the same approach except do it on the group headers and conditionally suppress them using the `groupnumber` keyword. I can't remember exactly how that keyword works with repeating headers...you might have to use shared variables.
dotjoe