Skip to main content



      Home
Home » Archived » BIRT » Set Postscript to Reverse Page Order?
Set Postscript to Reverse Page Order? [message #660485] Fri, 18 March 2011 11:41 Go to next message
Eclipse UserFriend
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 14:47 Go to previous messageGo to next message
Eclipse UserFriend
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 15:52 Go to previous messageGo to next message
Eclipse UserFriend
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 17:49 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 14:30:08 EDT 2025

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

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

Back to the top