|
|
|
Re: How to change style of Repeated Header [message #1001937 is a reply to message #1001423] |
Thu, 17 January 2013 15:31 |
|
Can you try using separate run and render tasks? Something like the following:
IReportRunnable design = null;
design = engine.openReportDesign("Reports/TopNPercent.rptdesign");
IRunTask task = engine.createRunTask(design);
task.setLocale(new Locale("en", "US"));
task.run("output/resample/TopNPercent.rptdocument");
task.close();
document = engine.openReportDocument("output/resample/TopNPercent.rptdocument");
PDFRenderOption options = new PDFRenderOption();
options.setOption(IRenderOption.HTML_PAGINATION, Boolean.TRUE );
options.setOutputFileName("output/resample/topnpercent.pdf");
options.setOutputFormat("pdf");
IRenderTask rtask = engine.createRenderTask(document);
rtask.setLocale(new Locale("en", "US"));
rtask.setRenderOption(options);
rtask.render();
rtask.close();
document.close();
Jason
|
|
|
|
Re: How to change style of Repeated Header [message #1004299 is a reply to message #1004164] |
Tue, 22 January 2013 23:54 |
|
Did you not see the onRender event fire?
Add something like this to the onRender event for the group header?
importPackage( Packages.java.io );
out = new PrintWriter( new FileWriter( "c:/temp/pgevents.txt", true ) );
out.println( "group header onRender "+ pageNumber);
out.close();
Jason
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04182 seconds