views:

251

answers:

1

I have 2 reports that need to be printed together.

  • The first report has a header and footer that will repeat (if necessary) on data overflow.
  • The last page, which is a form to be sent back.

I basically need a way to print the last page without the repeated header/footers from the first report, and send in parameters to be used in the form.

Currently I have a rectangle that does a page break placed before my footer. Inside the rectangle I have my second report (subreport). I have the header and footer unchecked for print on last page.

I can get it down to 3 pages (upper-left, upper-right, and lower-right minus the header/footer).

+3  A: 

There is a property for the Header and Footers, called PrintOnLastPage

If you set that to False, it will not print the header and footer on the very last page of the report.

Jon
I've tried this, with little help. The problem is getting the second report to be it's own page. Currently what I have set up is a subreport within a rectangle that makes a page break; which is placed before the footer. I have both footer and header set not to print on last page. I've also removed the borders on the subreport. With this setup, I get the first page correctly, but 4 pages for the second report.
avgbody
Why is the second report over 4 pages? Is there whitespace above or below?
Jon
You may need to generate two separate reports in this case, in two separate ReportViewer controls. I'm trying to imagine what is happening. Maybe you could provide a screenshot of the report render?
Jon
The reason, is because for some reason the header/footer are still used -- even though the subreport on its own only makes 1 page.
avgbody
It looks like it might be doing a page break at the wrong time?
avgbody