Home
Analytics
"Show Header on first page" set to false, but does not seem to work
ThomasR
I have a report with a header-height of 1.5inches. The header is not shown on the first page (Property "Show header on first" set to false).
If I save this to a pdf-File, there is an empty space of 1.5inches on top of page one.
How do I avoid this?
I attach two files:
(1) a rptdesign-file (The content of the table does not matter, of course) and
(2) a pdf showing the unwanted result.
Thanks for helping.
Find more posts tagged with
Comments
mwilliams
It's just the contents that will be hidden. You'll have to use two master pages to achieve this, currently. You'd have to use two tables and filters to not duplicate information. Then, attach the first masterpage to the table that goes on the first page and the second masterpage to the table that will fill the rest of the pages. Using multiple masterpages across a single element isn't possible, as of now. It's a feature that has been slated for a future release, but just hasn't made it, yet. You could always log an enhancement request for this or to possibly at least just hide the space, if you don't want the header on the first page. Hope this helps.
Megha Nidhi Dahal
Hi Thomas,<br />
<br />
You can try by giving a negative top margin i.e. -1.5 inch as in your case to the first item(pallete) in your design. This will eat up the empty space on the top.<br />
<br />
As I could see, you have one static grid as the very first element (static I mean is which doesn't grow to multiple pages). Give a negative top margin to this grid and try out.<br />
<br />
I have made it work in 3.7 using this method, not sure if it helps you.<br />
<br />
Have a look at this: <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154219#c4'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=154219#c4</a><br
/>
<br />
-Megha
ThomasR
<blockquote class='ipsBlockquote' data-author="'Megha Nidhi Dahal'" data-cid="108241" data-time="1344343093" data-date="07 August 2012 - 05:38 AM"><p>
I have made it work in 3.7 using this method, not sure if it helps you.<br /></p></blockquote>
<br />
Hi Megha,<br />
thanks for your reply. <br />
<br />
I have 3.7, too, but as I tried out your proposal it only worked for -0.5in. <br />
If I fill in -1.5in or even only -1.0in and from Eclipse choose "View Report as PDF" I get the error:<br />
<br />
<p class='bbc_indent' style='margin-left: 40px;'>+ org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.</p>
<br />
Did you succeed to do it with -1.5in? How?<br />
<br />
Thanks, and regards,<br />
Thomas
ThomasR
Hi Michael,<br />
thanks for your reply. I first tried out the suggestion Megha made, but did not succeed.<br />
<br />
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="108230" data-time="1344298162" data-date="06 August 2012 - 05:09 PM"><p>
You'd have to use two tables and filters to not duplicate information.</p></blockquote>
Are you talking about the "filters"-Menu in the "Edit Data Set"-dialog? Taking the example I posted above: I do not know on which ordernumber the first pagebreak will take place... so how do I know what filter-condition to use in that dialog?<br />
<br />
Maybe you are not talking about this kind of filtering. Are you talking about programming the filter, then? I would be very glad, if you could give me a working example (or tell me where I could find one) of how this could be achieved.<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="108230" data-time="1344298162" data-date="06 August 2012 - 05:09 PM"><p>
[...] or to possibly at least just hide the space, if you don't want the header on the first page.</p></blockquote>
I didn't understand that!<br />
<br />
<br />
You beeing a Birt Guru... you probably would have told me, if this were fixed with Version 4. So it's the same as with Version 3.7, isn't it?<br />
<br />
<br />
Thank you very much for your help, regards,<br />
Thomas
mwilliams
If you filtered the dataSet, you'd have to make two of them. Rather than doing that, you'd put the filters on the tables. Say that 30 lines fit on the first page, when you make a masterpage that doesn't have a header. Your first table would be attached to this masterpage and have a filter on it to only show the first 30 rows. Then, on your second table, you'd set the page break before to always and assign the second masterpage, with the header, to this table, and you'd put a filter on this one that showed everything except the first 30 rows. It's a workaround of the issue of having a different masterpage setup for the first page than the rest of the pages until the functionality is implemented in BIRT.
You are correct that this is still the same issue in 4.2.
As for what I meant by hiding the space. I meant to file an enhancement request that would add the hiding of the header space if you select not to show it on the first page.