Different results by generating PDF-Documents [message #719208] |
Fri, 26 August 2011 08:02  |
Eclipse User |
|
|
|
I try to hide the master footer when the page size is bigger then one. The Result is fine when I generate the PDF dokument from eclipse with the function "View Report as PDF". When I do the same from my code I get the footer on every page.
The following lines I use to hide the footer
if(pageNumber > 1){
this.getStyle().display ="none"
}
I use the Birt Runtime 3.7.0
To generate the pdf I use the following lines
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
// create a new report engine
EngineConfig engineConfig = new EngineConfig();
IReportRunnable runnable = engine.openReportDesign("new_report.rptdesign");
IRunAndRenderTask task = engine.createRunAndRenderTask(runnable);
PDFRenderOption option = new PDFRenderOption();
option.setOutputFileName("Tagesorder.pdf");
option.setOutputFormat(PDFRenderOption.OUTPUT_FORMAT_PDF);
task.setRenderOption(option);
Jürgen
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03822 seconds