November 10, 2010 at 6:28 am
I'm having a problem with extra page breaks in my PDF exports (and Print Preview in the Visual Studio too.) I've read heaps of different advice in different forums and blogs and none of them have worked for me. I have a pretty simple report which only contains one matrix. The data is such that the number of columns and rows never grow enough to exceed either the body size or the page size of the report. The report properties are set to landscape format, size 297mm*210mm (A4 paper size) with no margins. The body is 280mm*190mm. I have no page breaks anywhere and I've checked that every single CanGrow property has been set to "False". The matrix location is 1 cm from the top and 1cm from the left.
Despite all this I still get TWO extra empty pages at the end of my report, even if the report itself is only one page.
If anyone has any ideas how to solve this I'd be very grateful indeed!
November 16, 2010 at 7:22 am
I've done some more testing now and even if I remove every single column from my report except the column group one, I get two extra pages at the end. Please have a look at the attached file for how the report is designed at the moment. I've got two row groups and one column group. As I said in my previous post, all CanGrow are set to false etc.
November 16, 2010 at 7:30 am
Looking at your picture, the first thing I would try is shrinking the body of your report. Go grab the bottom edge of the body and move it up to the bottom of your table/matrix. It looks like you have a lot of empty space at the bottom.
November 16, 2010 at 7:49 am
Daniel Bowlin (11/16/2010)
Looking at your picture, the first thing I would try is shrinking the body of your report. Go grab the bottom edge of the body and move it up to the bottom of your table/matrix. It looks like you have a lot of empty space at the bottom.
Thanks for the tip, I've tried that and it didn't help. At the moment the body is the same size I always use which hasn't caused any problems before. The report is 297mm*210mm (A4 landscape) and the body 270mm*190mm. I have no margins in the report properties.
November 16, 2010 at 11:33 am
I have this little tickle in the back of my brain that makes me think that PDF files have built in margins and not having your report with margins would push the data to the edge which may make a PDF file push an extra page to get the margin. I can't say this for a fact, you can experiment or see if you can find the info on Google.
November 17, 2010 at 12:47 am
Daniel Bowlin (11/16/2010)
I have this little tickle in the back of my brain that makes me think that PDF files have built in margins and not having your report with margins would push the data to the edge which may make a PDF file push an extra page to get the margin. I can't say this for a fact, you can experiment or see if you can find the info on Google.
I just tried this and no luck. I have managed to get rid of one extra page break by adjusting the body size downwards a bit though...
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply