Not able to set Footer only on last page..
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Hello</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">I am using BIRT Report Designer version 3.7.2. And tried to put footer on last page only. Also tried answers from other blogs, but didn't found any concrete solution .</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Following things I worked in-</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">1. I have one master-page and one table on layout . And number of table's rows are not fixed,it depends on data.</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">2. For this I want Footer only on last page.And header on every page.</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">3. Checked with the code by putting on onRender()method of grid in footer</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> <strong><span style="color:#b22222;"> if</span></strong>(pageNumber < totalPage)</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> {</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> <strong><span style="color:#b22222;">this</span></strong>.getStyle().display =<span style="color:#0000ff;">"none"</span>;</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> }</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">4. Checked with the code by putting on visibility of grid in footer</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> <strong><span style="color:rgb(178,34,34);"> if</span></strong>(pageNumber == totalPage)</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> { </p>
<p style="font-family:'Source Sans Pro', sans-serif;"><span style="color:rgb(40,40,40);"> </span><span style="color:#b22222;"><b>true</b></span>;</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> }</p>
<div>5. But pageNumber and totalPage always gives value 1.</div>
<div>6.Tried to create Variables and incremented on table's onPageBreak() method. but the variable got incremented only once even if PDF report have more than 2 pages.</div>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Please suggest me any concrete solution so that I can set footer at bottom of last page only. </p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Also please let me know where I am going wrong?</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Thank you</p>
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Nisha Banke</p>