Pagebreak in doc and odt formats [message #905502] |
Thu, 30 August 2012 14:02  |
Eclipse User |
|
|
|
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 #905625 is a reply to message #905502] |
Thu, 30 August 2012 19:00   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #908897 is a reply to message #908601] |
Thu, 06 September 2012 07:39   |
Eclipse User |
|
|
|
Hi Jason,
Is there any difference in using the run task first and then the render task with the rptdocument instead of using the RunAndRenderTask (that's how we did it before)?
I just tried it how you stated, but it makes no difference. The PageBreaks we set on the elements in the document are simply ignored for the odt and doc formats.
If we render it in PDF, everything works just fine.
Tobias
|
|
|
Re: Pagebreak in doc and odt formats [message #909210 is a reply to message #908897] |
Thu, 06 September 2012 18:28   |
Eclipse User |
|
|
|
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
|
|
|
Re: Pagebreak in doc and odt formats [message #909451 is a reply to message #909210] |
Fri, 07 September 2012 06:58  |
Eclipse User |
|
|
|
Thanks, now it works!
We probably have to set a specific font ourselves now instead of "sans serif", so that the pagebreak rendering works for every output type.
And we can't use non-serializable Object types anymore, so we have to work a bit on our templates and data fillings.
But that should be not as much problematic as no proper pagebreaks Thanks again for your help, Jason!
Tobias
|
|
|
Powered by
FUDForum. Page generated in 0.03665 seconds