|
Re: How to create IReportDocument from stream [message #766907 is a reply to message #766465] |
Fri, 16 December 2011 16:16 |
|
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 #768170 is a reply to message #767274] |
Mon, 19 December 2011 17:29 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04265 seconds