Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Pagebreak in doc and odt formats(Pagebreak in doc and odt formats)
Pagebreak in doc and odt formats [message #905502] Thu, 30 August 2012 14:02 Go to next message
Tobias Knell is currently offline Tobias KnellFriend
Messages: 6
Registered: August 2012
Junior Member
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 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #907532 is a reply to message #905625] Tue, 04 September 2012 07:12 Go to previous messageGo to next message
Tobias Knell is currently offline Tobias KnellFriend
Messages: 6
Registered: August 2012
Junior Member
Thanks for looking into this! Hope you'll find a solution Very Happy
Re: Pagebreak in doc and odt formats [message #907538 is a reply to message #905625] Tue, 04 September 2012 07:12 Go to previous messageGo to next message
Tobias Knell is currently offline Tobias KnellFriend
Messages: 6
Registered: August 2012
Junior Member
Thanks for looking into this! Hope you'll find a solution :d
Re: Pagebreak in doc and odt formats [message #908031 is a reply to message #907532] Tue, 04 September 2012 15:09 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Tobias

Are you using the API to run reports?

Jason

On 9/4/2012 3:12 AM, Tobias Knell wrote:
> Thanks for looking into this! Hope you'll find a solution :d
Re: Pagebreak in doc and odt formats [message #908314 is a reply to message #908031] Wed, 05 September 2012 06:31 Go to previous messageGo to next message
Tobias Knell is currently offline Tobias KnellFriend
Messages: 6
Registered: August 2012
Junior Member
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 #908601 is a reply to message #908314] Wed, 05 September 2012 16:19 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Go to previous messageGo to next message
Tobias Knell is currently offline Tobias KnellFriend
Messages: 6
Registered: August 2012
Junior Member
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 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Go to previous message
Tobias Knell is currently offline Tobias KnellFriend
Messages: 6
Registered: August 2012
Junior Member
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 Very Happy Thanks again for your help, Jason!

Tobias
Previous Topic:Xerces issues when deployed to WAS 8
Next Topic:Designer plug-in project not working
Goto Forum:
  


Current Time: Thu Apr 25 03:39:37 GMT 2024

Powered by FUDForum. Page generated in 0.03557 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top