This topic has come up before as a bug, but it was also said to be fixed in version 2.6.2. I am currently using BIRT 3.7.2.<br />
<br />
My goal is to display an item on the first page's header while removing it on all pages after. All page breaks are natural and not controlled. The report must be in PDF format.<br />
<br />
Attached is a sample I found on this forum that works as is, but breaks if the master page's header height is increased to 1.8 inches or more (at which point the "page1" text repeats on every page). For my project the header is at minimum 2.1 inches.<br />
<br />
The OnRender scripts used are:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>if( pageNumber > 1 ){
this.getStyle().display = "none";
}</pre>
<pre class='_prettyXprint _lang-auto _linenums:0'>if( pageNumber == 1 ){
this.getStyle().display = "none";
}else{
this.getStyle().display = "block";
}</pre>
<br />
Please let me know if this is working as intended and if there is a better solution to pursue.<br />
<br />
Thanks in advance!<br />
<br />
-NINO<br />
<br />
Some links for reference:<br />
<br />
<a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347251'>Bug Report</a><br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/22406-hiding-some-part-of-the-report-header-on-specific-pages/page__hl__optional header element__fromsearch__1'>Similar Issue1</a><br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php/topic/22406-hiding-some-part-of-the-report-header-on-specific-pages/page__hl__optional header element__fromsearch__1'>Similar Issue 2</a>