Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to create IReportDocument from stream
How to create IReportDocument from stream [message #766465] Thu, 15 December 2011 20:52 Go to next message
przemyslaw.bech is currently offline przemyslaw.bechFriend
Messages: 3
Registered: December 2011
Junior Member
Hi All!

I have a problem. I'm writing a web application which allows to upload a report file do the database so it can be then used when needed.

Ofc I wont to have pagination on my page so I found that I need to use IReportDocument created by calling engine.openReportDocument(...)

Problem is I do not see any way to provide report file as a stream for this function. It only see parameters like file name or IResourceLocator. I also do not see any implementation of IResourceLocator that I could use here.

Please help me, give me some code snippet to show me how to achieve what I have written above.

Thx!!!
Re: How to create IReportDocument from stream [message #766907 is a reply to message #766465] Fri, 16 December 2011 16:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Currently there is not an implementation of this. Look at this thread
for more details:

http://www.eclipse.org/forums/index.php/t/263628/

Jason

On 12/15/2011 3:53 PM, przemyslaw.bech wrote:
> Hi All!
>
> I have a problem. I'm writing a web application which allows to upload a
> report file do the database so it can be then used when needed.
> Ofc I wont to have pagination on my page so I found that I need to use
> IReportDocument created by calling engine.openReportDocument(...)
> Problem is I do not see any way to provide report file as a stream for
> this function. It only see parameters like file name or
> IResourceLocator. I also do not see any implementation of
> IResourceLocator that I could use here.
> Please help me, give me some code snippet to show me how to achieve what
> I have written above.
>
> Thx!!!
Re: How to create IReportDocument from stream [message #767274 is a reply to message #766907] Sat, 17 December 2011 14:12 Go to previous messageGo to next message
przemyslaw.bech is currently offline przemyslaw.bechFriend
Messages: 3
Registered: December 2011
Junior Member
Ok so how does the BIRT Viewer do pagination??? Is it saving file on disk and than read it?

Is there way to:
1. Load report DESIGN
2. Process report design to get report DOCUMENT as a Java object
3. use document object for pagination etc. to generate a report page.
Re: How to create IReportDocument from stream [message #768170 is a reply to message #767274] Mon, 19 December 2011 17:29 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

The viewer creates a temporary rptdocument based on session id and
removes it when the session is finished. So it does write and read from
the file. The Viewer can also use an existing rptdocument and just
render it, so you can create one save it some where and then point the
viewer at it some time later. The engine has interfaces for creating
your own archive reader and writer, but if you want it in a db, it may
be quicker to let the engine write to a tmp location and then write that
to the database and reverse the process before rendering.

Jason

On 12/17/2011 9:13 AM, przemyslaw.bech wrote:
> Ok so how does the BIRT Viewer do pagination??? Is it saving file on
> disk and than read it?
> Is there way to:
> 1. Load report DESIGN
> 2. Process report design to get report DOCUMENT as a Java object
> 3. use document object for pagination etc. to generate a report page.
Previous Topic:'birtutility' is undefined
Next Topic:JVM Exit and Frameset failure
Goto Forum:
  


Current Time: Thu Apr 25 01:52:51 GMT 2024

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

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

Back to the top