|
Re: Pagebreak in doc and odt formats [message #905625 is a reply to message #905502] |
Thu, 30 August 2012 19:00 |
|
I will check with the team on this bug.
Jason
On 8/30/2012 10:02 AM, Tobias Knell wrote:
> Hello,
>
> are there any plans on implementing proper page breaks in the doc and
> odt formats?
>
> There's already a report for this
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=351064) where I tried to
> get the information, but nobody answered it.
>
> Apperently this feature was planned to be implemented in version 3.7.2,
> but it still isn't implemented yet.
>
> Could somebody take care of this, or at least tell me, where I can find
> the corresponding code for pdf files, so that I can try to implement it
> for doc and odt myself?
>
>
> Thanks in advance,
>
> Tobias Knell
>
>
>
>
>
>
|
|
|
|
|
|
|
Re: Pagebreak in doc and odt formats [message #908601 is a reply to message #908314] |
Wed, 05 September 2012 16:19 |
|
Then use a run task to generate an rptdocument, Then do a render task
to DOC using the rptdocument.
Jason
On 9/5/2012 2:31 AM, Tobias Knell wrote:
> Ah, sorry I forgot to mention this. We are using the Java Api to create
> the Reports.
|
|
|
|
Re: Pagebreak in doc and odt formats [message #909210 is a reply to message #908897] |
Thu, 06 September 2012 18:28 |
|
There is a difference. You probably do not have the HTML_PAGINATION option set:
IReportRunnable design = null;
design = engine.openReportDesign("Reports/ordersdoc.rptdesign");
IRunTask task = engine.createRunTask(design);
task.setLocale(new Locale("en", "US"));
task.run("output/resample/ordersdoc.rptdocument");
task.close();
document = engine.openReportDocument("output/resample/ordersdoc.rptdocument");
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFormat("doc");
options.setOutputFileName("output/resample/multipage.doc");
options.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG");
options.setOption( IRenderOption.HTML_PAGINATION,Boolean.TRUE );
IRenderTask rtask = engine.createRenderTask(document);
rtask.setLocale(new Locale("en", "US"));
rtask.setRenderOption(options);
rtask.render();
rtask.close();
Jason
|
|
|
|
Powered by
FUDForum. Page generated in 0.04843 seconds