Home
Analytics
Footer of the Master Page at the last page of PDF
Kenichi
Could anybody help me the following two questions of mine regarding the Actuate Birt - Designer?
1. Could you tell me how to set the Footer (of the Master Page) only at the last page of generated Report?
For example, say my report is 3 pages long. In that case, I want the Footer to appear only the third page ( of course, at the very bottom of the page).
2. Is there anyway to have the Footer of the TABLE always at the BOTTOM of the page in the report? Currently, the value that I set on the FOOTER of the TABLE appears immediately after the Details of TABLE. What I want is to set this FOOTER of the table at the bottom of the page always regardless the number of records the database returns.
I believe these above two questions should have multiple ways to be resovled. I am happy to hear any kinds of idea or advice of yours.
Thanks
Find more posts tagged with
Comments
mwilliams
Hi Kenichi,
I have an example in the devShare that could help for 2, if your line heights are fixed. If they're not, it will get a lot more complex to figure out, but it can be done. I'll look for it and post it in here.
For #1, the way it currently works, the masterpage cannot change within a certain element. So, if you have a table that goes 3 pages, you'll have to have the same footer for all pages, unless you make 2 tables. The first that shows the first 2 pages of data and the second that shows just the last page of data using filters. Then, you'll create a second masterpage and insert a "page break always" in between your tables and set the second table to the masterpage with the footer information.
mwilliams
http://www.birt-exchange.org/org/devshare/designing-birt-reports/989-extend-table-to-fit-page/
johnw
Question 1 pops up from time to time. The easiest way to solve that is with a Visibility expression outer most container in the Master Pages footer, and it would be set to something like so in the onRender event:
if (BirtComp.lessThan(pageNumber, totalPage))
{
this.getStyle().display = "NONE";
}
http://www.birt-exchange.org/org/forum/index.php/topic/17175-how-to-hide-the-footer-on-last-page/page__hl__pageNumber __fromsearch__1
mwilliams
I keep forgetting that you can set the display to "none" in the masterpage.
Thanks John!
Kenichi
Thank you for both of you, mwilliams and johnw. I am still working on these parts, and I will post my reply as soon as I make any progress. However, I really appreciate your immediate comments and help.
Thanks again.
Kenichi
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="71877" data-time="1294162137" data-date="04 January 2011 - 10:28 AM"><p>
<a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/989-extend-table-to-fit-page/'>http://www.birt-exchange.org/org/devshare/designing-birt-reports/989-extend-table-to-fit-page/</a><br
/></p></blockquote>
<br />
<br />
>>#3<br />
<br />
Mr. mwilliams.<br />
<br />
Thanks for posting the example of Designer for my second question. Actually, the example gave me a great snapshot, and this is exactly what I wanted to achieve. <br />
<br />
To me, it looks like the following script, that was integrated in the first footer table, was the key in order to control length of dummy/empty values.<br />
<br />
<strong class='bbc'>while (rowCount < maxRows){ extendTable = extendTable + "<br>"; rowCount++;}<br />
extendTable;</strong><br />
<br />
<br />
However, this way is a bit hard for me to control the length accurately. <br />
<br />
Say, if I want to keep 0.4-inch Height in my DETAIL-Table constantly, how can I keep the same height for each rowCount in the first footer? I can change the height by adding <br> in the extendTable each rowCount, but it does not give me very accurate output.<br />
<br />
Please find attached 'sample.rptdesigner'. I tried to adjust the footer-Table to be at the bottom on the page by using 0.4 Height in Detail-Table, but second Footer Rows in each page cannot always be in the same level.<br />
<br />
Thanks
Kenichi
<blockquote class='ipsBlockquote' data-author="'johnw'" data-cid="71942" data-time="1294284082" data-date="05 January 2011 - 08:21 PM"><p>
Question 1 pops up from time to time. The easiest way to solve that is with a Visibility expression outer most container in the Master Pages footer, and it would be set to something like so in the onRender event:<br />
<br />
if (BirtComp.lessThan(pageNumber, totalPage))<br />
{<br />
this.getStyle().display = "NONE";<br />
}<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/17175-how-to-hide-the-footer-on-last-page/page__hl__pageNumber __fromsearch__1'>http://www.birt-exchange.org/org/forum/index.php/topic/17175-how-to-hide-the-footer-on-last-page/page__hl__pageNumber __fromsearch__1</a><br
/></p></blockquote>
<br />
Mr. johnw<br />
<br />
Thanks! It worked for me.
mwilliams
Kenichi,
Can you try posting your sample report again? I don't see it.
Kenichi
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="72067" data-time="1294699451" data-date="10 January 2011 - 03:44 PM"><p>
Kenichi,<br />
<br />
Can you try posting your sample report again? I don't see it.<br /></p></blockquote>
<br />
<br />
Mr. mwilliams.<br />
Sorry that I was forgetting the attachments. I have attached two files, FooterLevel.ppt and sample.rptdesign. The powerpoint slide shows the corruption of footer level balance when I specify the height of row. The sample.rptdesign is the actual Report that I was using for my experiment.<br />
<br />
Please advice me if you have any good idea to keep the same level of 2nd footer line when I change the height of row.
santoshsingh1056
Hello,<br />
<br />
I am facing problem in setting correct format in property editor of a data field, <br />
like suppose a data field is supposed to display the amount of money. <br />
By default its number format is set to STRING. <br />
Now I want to change it to CURRENCY format and also want to display in 1,000 format.<br />
<br />
<br />
My BIRT is not allowing to do me so.<br />
<br />
I am using:-<br />
:-<br />
Wndows 7 OS with 4 GB RAM<br />
&<br />
Version: 3.4.1 of BIRT<br />
<br />
<br />
Please help me out in this issue<br />
<br />
<br />
<a href='mailto:santoshsingh1056@gmail.com' title='E-mail Link' class='bbc_email'>Email me</a>
santoshsingh1056
Hi Kenichi<br />
<br />
Regarding 1st question i wd suggest try to check condition with total page no in IF block.<br />
Like<br />
if(p_no==TotalP_no){<br />
print this footer<br />
}<br />
if this works fine plz reply me.<br />
<br />
Thanks <br />
Santosh<br />
<br />
<blockquote class='ipsBlockquote' data-author="'Kenichi'" data-cid="71851" data-time="1294118850" data-date="03 January 2011 - 10:27 PM"><p>
Could anybody help me the following two questions of mine regarding the Actuate Birt - Designer?<br />
<br />
1. Could you tell me how to set the Footer (of the Master Page) only at the last page of generated Report?<br />
<br />
For example, say my report is 3 pages long. In that case, I want the Footer to appear only the third page ( of course, at the very bottom of the page).<br />
<br />
<br />
<br />
2. Is there anyway to have the Footer of the TABLE always at the BOTTOM of the page in the report? Currently, the value that I set on the FOOTER of the TABLE appears immediately after the Details of TABLE. What I want is to set this FOOTER of the table at the bottom of the page always regardless the number of records the database returns. <br />
<br />
I believe these above two questions should have multiple ways to be resovled. I am happy to hear any kinds of idea or advice of yours.<br />
<br />
Thanks<br /></p></blockquote>
vensw
Hi All,
I'm using the below script and its not working. My Birt Version is 2.3.2.
if (BirtComp.lessThan(pageNumber, totalPage))
{
this.getStyle().display = "NONE";
}
Does any one have a clue of whats going wrong??
Regards,
EVS
mwilliams
EVS,
I've responded to you on this in another thread already, but I'll say it again in case someone else runs across this thread with an issue. In 2.3.2, you had to make sure that the page break methods were called by making sure their was a page break interval set that was set to a value that fit on the page for sure. Also, you'll probably have to do this in the web viewer and then export to PDF if wanting the PDF output because this way the run and render tasks are ran separately. In version 3.7, this all seems to work without having to set so many things and seems less buggy than 2.6.2 with this subject.