|
|
|
Re: Is there a way to change the plugin.xml for spudsoft birt emitters to no-pagination in runtime.j [message #1386039 is a reply to message #1385987] |
Fri, 13 June 2014 07:19 |
Paul Yang Messages: 6 Registered: November 2013 |
Junior Member |
|
|
Yes, there will meet the export requirement by change the report design file following your idea .
Unfortunately, we need pagination when view the report by birt viewer.
So, Is there a way to change the birt viewer code, e.g. form google
IRenderOption options = null;
options = new EXCELRenderOption(outputFormat: "xls");
//SpudSoft Emitteroptions.setEmitterID("uk.co.spudsoft.birt.emitters.excel.XlsEmitter");options.setOption("ExcelEmitter.SingleSheetWithPageBreaks", true);
// reportFileFullPath is a String that contains absolute path of the file.IReportRunnable reportDesign = reportEngine.openReportDesign(reportFileFullPath);
ReportDesignHandle designHandle = (ReportDesignHandle) reportDesign.getDesignHandle();
DesignElementHandle designElement = designHandle.getBody().get(0);
if( designElement instanceof TableHandle ) {
((TableHandle)designElement).setPageBreakInterval(0);
((TableHandle)designElement).setRepeatHeader(false);}
I don't know where should insert this code.
or
Is there other ways.
Thanks
[Updated on: Fri, 13 June 2014 07:20] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02889 seconds