Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Necessary to write to disk when exporting (BIRT Engine application)??
Necessary to write to disk when exporting (BIRT Engine application)?? [message #368184] Fri, 08 May 2009 19:28 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
Previous Topic:BIRT Engine home
Next Topic:Exception accessing Preview
Goto Forum:
  


Current Time: Fri Apr 26 21:20:59 GMT 2024

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

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

Back to the top