Necessary to write to disk when exporting (BIRT Engine application)?? [message #368184] |
Fri, 08 May 2009 19:28 |
Eclipse User |
|
|
|
Originally posted by: asd.asd.com
I use this code when I export to eg. word;
IReportRunnable design;
try {
design = reportEngine.openReportDesign(reportContent);
// Create task to run the report - use the task to execute and run the
report,
IRunTask task = reportEngine.createRunTask(design);
// Write a rptdocument to the specified destination based on the above
design.
task.run(reportPath);
// Open the created rptdocument.
IReportDocument reportDocument =
reportEngine.openReportDocument(reportPath);
....
After reading a ReportDesignHandle an IRunTask is created. When 'run' is
executed on this task a .rptdocument is stored in the 'reportPath'. Next the
..rptdocument file (just written to disk) is read back into a IRportDocument.
Is it possible to avoid writing the .rptdocument file to disk and load it
directly into the IReportDocument object?
|
|
|
Re: Necessary to write to disk when exporting (BIRT Engine application)?? [message #368198 is a reply to message #368184] |
Mon, 11 May 2009 14:53 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Can you not just use a runandrender task?
JS wrote:
> I use this code when I export to eg. word;
>
>
> IReportRunnable design;
> try {
> design = reportEngine.openReportDesign(reportContent);
>
> // Create task to run the report - use the task to execute and run the
> report,
> IRunTask task = reportEngine.createRunTask(design);
>
> // Write a rptdocument to the specified destination based on the above
> design.
> task.run(reportPath);
>
> // Open the created rptdocument.
> IReportDocument reportDocument =
> reportEngine.openReportDocument(reportPath);
>
> ...
>
>
> After reading a ReportDesignHandle an IRunTask is created. When 'run' is
> executed on this task a .rptdocument is stored in the 'reportPath'. Next
> the .rptdocument file (just written to disk) is read back into a
> IRportDocument.
>
> Is it possible to avoid writing the .rptdocument file to disk and load
> it directly into the IReportDocument object?
|
|
|
Powered by
FUDForum. Page generated in 0.02939 seconds