Wrong page number with dynamic text field (Separate run/render task) [message #1000747] |
Tue, 15 January 2013 11:25  |
André Schade Messages: 5 Registered: August 2012 |
Junior Member |
|
|
Hello BIRT friends,
I have a very simple BIRT report with one dynamic text field and a long constant text. It forces a page break, when I create a PDF file.
There is no problem, if I use a RunAndRenderTask to create this report as PDF. The page numbers are: 1/2, 2/2. (as expected)
But if I use a separate run and render task, the text is included twice, and the page numbers are: 1/2, 1/2, 2/2, 2/2. (The PDF file has 4 pages)
I use following code for rendering. (I know that RunAndRenderTask works, but I need it in that way for further manipulations)
final IRunTask runTask = this.engine.createRunTask(this.design);
runTask.run(temporaryBirtDocument.getCanonicalPath());
final IReportDocument reportDocument = this.engine.openReportDocument(temporaryBirtDocument.getCanonicalPath());
final IRenderTask renderTask = this.engine.createRenderTask(reportDocument);
renderTask.setRenderOption(this.renderOptions);
renderTask.render();
runTask.close();
If I change the Layout of the BIRT report from "Fixed Layout" to "Auto Layout" everything works fine. But this is not a solution for me.
Do you know this problem? Do you have a solution for me?
I am using BIRT 3.7.2. The sample report is attached.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02483 seconds