Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Connection Pool in Birt
Connection Pool in Birt [message #991186] Mon, 17 December 2012 16:16
Silver wang is currently offline Silver wang
Messages: 3
Registered: December 2012
Junior Member
All,
I am new to Birt so please pardon my question, I was able to replace the original datasource by doing below:

IRunAndRenderTask task = engine.createRunAndRenderTask(design);

Map<String, Object> appContext = task.getAppContext();
appContext.put("OdaJDBCDriverPassInConnection", setupJdbcConnection());
appContext.put("OdaJDBCDriverPassInConnectionCloseAfterUse", false);
task.setAppContext(appContext);

HTMLRenderOption options = new HTMLRenderOption();
//Set ouptut location
options.setOutputFileName("D:/reports/new_report_1.html");
//Set output format
options.setOutputFormat("html");
task.setRenderOption(options);

//run the report and destroy the engine
//Note - If the program stays resident do not shutdown the Platform or the Engine
task.run();
task.close();




I am wondering if I can display this html page or any output format in Birt viewer within a jsp page? Please advise. Your help is greatly appreciated. thx
Previous Topic:How to access report variable in masterpage
Next Topic:Generate report via web page link
Goto Forum:
  


Current Time: Fri Sep 19 04:00:32 GMT 2014

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

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