Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Set Postscript to Reverse Page Order?
Set Postscript to Reverse Page Order? [message #660485] Fri, 18 March 2011 15:41 Go to next message
Steve Bliss is currently offline Steve BlissFriend
Messages: 15
Registered: February 2011
Junior Member
I'm working on an java app that generates BIRT reports into postscript files.

Is there a way to specify that the output file should be in reverse page order? A RenderOption flag maybe?

Thanks in advance for any help!
Steve

Re: Set Postscript to Reverse Page Order? [message #660514 is a reply to message #660485] Fri, 18 March 2011 18:47 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Steve,

I do not know of an easy way to do this, but a manual way is to render
one page at a time starting with the highest.
//render a specific page
task.setPageNumber(3);

use report document's page count to loop.
long pgcnt = document.getPageCount();

Jason

On 3/18/2011 11:41 AM, Steve Bliss wrote:
> I'm working on an java app that generates BIRT reports into postscript
> files.
>
> Is there a way to specify that the output file should be in reverse page
> order? A RenderOption flag maybe?
>
> Thanks in advance for any help!
> Steve
>
>
Re: Set Postscript to Reverse Page Order? [message #660515 is a reply to message #660514] Fri, 18 March 2011 19:52 Go to previous messageGo to next message
Steve Bliss is currently offline Steve BlissFriend
Messages: 15
Registered: February 2011
Junior Member
Hmm. That sounds somewhat doable, except it looks like that requires separate RunTask and RenderTask objects. My app uses the combined RunAndRenderTask object. Using separate objects requires creation of physical report document files. I'd like to avoid that, since we process thousands of reports in a single run, and adding a bunch of temporary files would likely slow down performance.

Is it possible to do what you suggest either with a single object, or to avoid the physical creation of intermediate report document files?

Steve

Jason Weathersby wrote on Fri, 18 March 2011 14:47
Steve,

I do not know of an easy way to do this, but a manual way is to render
one page at a time starting with the highest.
//render a specific page
task.setPageNumber(3);

use report document's page count to loop.
long pgcnt = document.getPageCount();

Jason

On 3/18/2011 11:41 AM, Steve Bliss wrote:
> I'm working on an java app that generates BIRT reports into postscript
> files.
>
> Is there a way to specify that the output file should be in reverse page
> order? A RenderOption flag maybe?
>
> Thanks in advance for any help!
> Steve
>
>

Re: Set Postscript to Reverse Page Order? [message #660838 is a reply to message #660515] Mon, 21 March 2011 21:49 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I do not believe there is a way currently to do this with a runandrender
task.

Jason

On 3/18/2011 3:52 PM, Steve Bliss wrote:
> Hmm. That sounds somewhat doable, except it looks like that requires
> separate RunTask and RenderTask objects. My app uses the combined
> RunAndRenderTask object. Using separate objects requires creation of
> physical report document files. I'd like to avoid that, since we process
> thousands of reports in a single run, and adding a bunch of temporary
> files would likely slow down performance.
>
> Is it possible to do what you suggest either with a single object, or to
> avoid the physical creation of intermediate report document files?
>
> Steve
>
> Jason Weathersby wrote on Fri, 18 March 2011 14:47
>> Steve,
>>
>> I do not know of an easy way to do this, but a manual way is to render
>> one page at a time starting with the highest.
>> //render a specific page
>> task.setPageNumber(3);
>>
>> use report document's page count to loop.
>> long pgcnt = document.getPageCount();
>>
>> Jason
>>
>> On 3/18/2011 11:41 AM, Steve Bliss wrote:
>> > I'm working on an java app that generates BIRT reports into postscript
>> > files.
>> >
>> > Is there a way to specify that the output file should be in reverse
>> page
>> > order? A RenderOption flag maybe?
>> >
>> > Thanks in advance for any help!
>> > Steve
>> >
>> >
>
>
Previous Topic:For Preview, Internal browser is not available - how to set
Next Topic:show raport rptdesign on div
Goto Forum:
  


Current Time: Thu Apr 25 14:59:14 GMT 2024

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

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

Back to the top