Skip to main content



      Home
Home » Archived » BIRT » Running a report from report engine
Running a report from report engine [message #52016] Mon, 27 June 2005 16:50 Go to next message
Eclipse UserFriend
Originally posted by: adam.adam.com

Hi everybody. I have been playing around with this code for awhile and I
can not get it to work. I am trying to display a report to html format.
Here is my code. If anybody can point me in the right direction I would
greatly appreciate it. Thank you very much.
-Adam

Code:

ReportEngine engine = new ReportEngine(null);
IReportRunnable report = engine.openReportDesign(
"c:/temp/sample.rptdesign");
IRunAndRenderTask task = engine.createRunAndRenderTask( report );

// Set up options for HTML output.

HTMLRenderOption options = new HTMLRenderOption( );
options.setOutputFormat( HTMLRenderOption.OUTPUT_FORMAT_HTML );
task.setRenderOption( options );

// Run the report.

task.run( );
Re: Running a report from report engine [message #52042 is a reply to message #52016] Mon, 27 June 2005 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi, Adam,

Can you give more information on what you have done before running this
piece of code? Also, in what environment are you running this piece of code?

Stanley Wang
BIRT Engine

Adam wrote:
> Hi everybody. I have been playing around with this code for awhile and
> I can not get it to work. I am trying to display a report to html
> format. Here is my code. If anybody can point me in the right
> direction I would greatly appreciate it. Thank you very much.
> -Adam
> Code:
>
> ReportEngine engine = new ReportEngine(null);
> IReportRunnable report = engine.openReportDesign(
> "c:/temp/sample.rptdesign");
> IRunAndRenderTask task = engine.createRunAndRenderTask( report );
>
> // Set up options for HTML output.
>
> HTMLRenderOption options = new HTMLRenderOption( );
> options.setOutputFormat( HTMLRenderOption.OUTPUT_FORMAT_HTML );
> task.setRenderOption( options );
>
> // Run the report.
>
> task.run( );
>
Re: Running a report from report engine [message #52066 is a reply to message #52042] Mon, 27 June 2005 21:52 Go to previous message
Eclipse UserFriend
Originally posted by: adam.adam.com

I will be running this from a jsp script by Tomcat server. I have already
created the rptdesign document using birt. I want the output to be HTML.
What I am trying to do is just call the document from the jsp script and
output it to the screen via HTML. Thank you for the help. If you need
any other information please let me know.
-Adam
Previous Topic:type is fixed, for output columns?
Next Topic:Formating a report programmatically
Goto Forum:
  


Current Time: Fri May 09 10:57:52 EDT 2025

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

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

Back to the top