Save a rptdocument during a report is ran [message #725753] |
Thu, 15 September 2011 12:54  |
Eclipse User |
|
|
|
Hi,
We would like to save the .rptdocument for each report ran through the birtviewer. The main idea is : whatever the output format requested by the user is, we would like to keep the corresponding .rptdocument stored somewhere on our server.
Is there any API that can be put inside the .rptdesign to save the corresponding .rptdocument each time the .rptdesign is run ?
The fact of running a report is creating a .rptdocument on a "temp-like" folder on the birtviewer site, but this .rptdocument is temporary and is being removed after a while. We would like to store it permanently somewhere.
Any idea ?
Kind regards
RWIL
|
|
|
Re: Save a rptdocument during a report is ran [message #726134 is a reply to message #725753] |
Fri, 16 September 2011 12:07  |
Eclipse User |
|
|
|
Why not use the __document url parameter? You can specify a folder
location that is not temp. You could also add a script in the
beforeRender that makes a copy of the document, just remember that the
beforeRender is called every time a page is rendered in the viewer.
Just use standard file io and get the report document name and location
using:
reportContext.getHttpServletRequest().getAttribute("attributeBean").getReportDocumentName();
Jason
On 9/15/2011 12:54 PM, RWIL wrote:
> Hi,
>
> We would like to save the .rptdocument for each report ran through the
> birtviewer. The main idea is : whatever the output format requested by
> the user is, we would like to keep the corresponding .rptdocument stored
> somewhere on our server.
>
> Is there any API that can be put inside the .rptdesign to save the
> corresponding .rptdocument each time the .rptdesign is run ?
>
> The fact of running a report is creating a .rptdocument on a "temp-like"
> folder on the birtviewer site, but this .rptdocument is temporary and is
> being removed after a while. We would like to store it permanently
> somewhere.
>
> Any idea ?
>
> Kind regards
>
> RWIL
|
|
|
Powered by
FUDForum. Page generated in 0.23506 seconds