Connection Pool in Birt Viewer [message #991187] |
Mon, 17 December 2012 11:24  |
Eclipse User |
|
|
|
All,
I am new to Birt so please pardon my question below, I was able to inject connection before I ran the report, the output shows proper result. see codes 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 still show this output file(html or pdf...) in Birt report viewer? Please advice how to, Your help is greatly appreciated.
Thanks
|
|
|
|
Powered by
FUDForum. Page generated in 0.06334 seconds