Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Rendering the rptDocument while its being generated
Rendering the rptDocument while its being generated [message #725125] Wed, 14 September 2011 03:17 Go to next message
sam va is currently offline sam vaFriend
Messages: 121
Registered: July 2011
Senior Member
Hi

I have a requirement, where I need to render the rptDocument while its being generated.
Lets assume the rptDocument contains 40 pages and it has generated 2 pages and the rest are being processed. Can I use the same rptDocument to render the first page in HTML (using the report tag)?

Thanks

[Updated on: Wed, 14 September 2011 03:20]

Report message to a moderator

Re: Rendering the rptDocument while its being generated [message #725141 is a reply to message #725125] Wed, 14 September 2011 04:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

When the report document is being created you can set a callback class
that you could use to do this. You set the page handler on the task like

task.setPageHandler( classinstance )

The class needs to implement the IPageHandler interface.

There may be an example of this in the
org.eclipse.birt.report.tests.engine.api project.

Jason

On 9/13/2011 11:17 PM, sam wrote:
> Hi
>
> I have a requirement, where I need to render the rptDocument while its
> being generated.
> Lets assume the rptDocument contains 40 pages and it has generated 2
> pages and the rest are being processed. Can I use the same rptDocument
> to render the first page initially?
>
> Thanks
Re: Rendering the rptDocument while its being generated [message #725153 is a reply to message #725141] Wed, 14 September 2011 05:53 Go to previous messageGo to next message
sam va is currently offline sam vaFriend
Messages: 121
Registered: July 2011
Senior Member
thank you
Re: Rendering the rptDocument while its being generated [message #725750 is a reply to message #725153] Thu, 15 September 2011 16:37 Go to previous messageGo to next message
sam va is currently offline sam vaFriend
Messages: 121
Registered: July 2011
Senior Member
yes we can get the notifications.
But wouldn't using the same rptdocument, that is getting generated, to render create a problem. I am using run task to generate the document and report tag to render the document.

Thanks
Re: Rendering the rptDocument while its being generated [message #726120 is a reply to message #725750] Fri, 16 September 2011 15:44 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I am not certain it will work with the report tag, but reading the
rptdocument as it is being created should be fine (guess).

Jason

On 9/15/2011 12:37 PM, vavesw wrote:
> yes we can get the notifications.
> But wouldn't using the same rptdocument, that is getting generated, to
> render create a problem. I am using run task to generate the document
> and report tag to render the document.
>
> Thanks
Previous Topic:Wierd issue with Birt 3.7.0
Next Topic:Custom Emitter
Goto Forum:
  


Current Time: Tue Sep 24 16:11:54 GMT 2024

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

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

Back to the top