Connection Pool in Birt [message #991186] |
Mon, 17 December 2012 16:16 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03398 seconds