<p>Hi guys,</p><p> </p><p>I'm encountering an issue when using the <em>Total Page Count</em> AutoText control in 2 different Master Pages.</p><p> </p><p>What I have is :</p><ul class='bbc'><li>A library with a DataSource and 2 DataSets</li><li>A library with 2 Master Pages</li><li>A library with a table which lists the content of 1 DataSet</li><li>A library with a table which lists the content of the 2nd DataSet.</li><li>A report that shows my 2 tables and applies a different Master Page to each tables.</li></ul><p>What I need to do is :</p><ul class='bbc'><li>For the Portrait Master Page, show <em>PageNumber/TotalPage</em> information in the footer.</li><li>For the Landscape Master Page, show <em>PageNumber/TotalPage </em>information in the header, and apply a different style than what is displayed in the Potrait footer.</li></ul><p>The issue is :</p><ul class='bbc'><li>It works correctly when I preview the report in the BIRT Viewer.</li><li>It doesn't work when I use the BIRT Engine to render my report in PDF format using <em>IRunAndRenderTask</em> task. In this case I can't apply a different style to the <em>TotalPage</em> control.</li></ul><p>I understand that I have a single occurrence of the <em>TotalPage</em> object (obvious as this is an information common for the whole report), but I don't understand why I can't apply a different style to each control which are on different Master Pages.</p><p> </p><p>From what I read <a data-ipb='nomediaparse' href='
http://www.eclipse.org/forums/index.php/t/237926/'>here</a>, I should be able to put the information in the <em>ReportContext</em>, and then retrieve this information in order to set the text of a <em>Text</em> control (and avoid using the <em>AutoText</em> control). However, although I'm using the version 4.3.0 of the <em>BIRT Runtime</em>, I can't access my <em>ReportContext</em> from the <em>IRunAndRenderTask</em> interface.</p><p> </p><p>Attached is an export of an Eclipse project that demonstrates the issue. In order to see the issue, you can :</p><ul class='bbc'><li>View the report called testReport in the <em>BIRT Viewer</em> and notice that Portrait pages have the information in their footer, and the Landscape page has the information in its header, formatted differently .... everything's fine here.</li><li>Run the Java class called <em>RunTestReport.java</em> and notice that the information is now not correctly formatted anymore.</li></ul><p>Is this a known issue ? (I couldn't find any relevant bug on bugzilla ...)</p><p> </p><p>I'm using the <em>Kepler Release</em> of Eclipse and the version 4.3.0 of BIRT plugin.</p><p> </p><p>Thanks,</p><p>Julien</p>