Skip to main content



      Home
Home » Archived » BIRT » Need help regarding setting HtmlRenderContext for report engine
Need help regarding setting HtmlRenderContext for report engine [message #106177] Mon, 09 January 2006 08:55 Go to next message
Eclipse UserFriend
hi all,
Iam using birt reporting engine 2.0M3 for generating reports in my web
app.
I have specified image directory in my server. In birt 1.01 iam using
IRunandRenderTask class. In this class iam using setContext method as
HtmlRenderContext as argument. But in birt 2.0 M3 setContext method is not
there an i saw setAppContext methos with Map as argument. please help me
how to set renderoption in IRunandRenderTask class.
// Here is my code
private IRunAndRenderTask task = null;
ReportEngine engine = new ReportEngine( config );
task = engine.createRunAndRenderTask( report );
HTMLRenderContext renderContext = new HTMLRenderContext( );
renderContext.setImageDirectory("./images");
renderContext.setBaseImageURL("./images");
task.setContext(renderContext);

Thanks in advance,

Regards,
Bhaskar
Re: Need help regarding setting HtmlRenderContext for report engine [message #106411 is a reply to message #106177] Mon, 09 January 2006 15:46 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Bhaskar

From the ReportRunner.java

HTMLRenderContext renderContext = new HTMLRenderContext( );
renderContext.setImageDirectory( "image" ); //$NON-NLS-1$

HashMap appContext = new HashMap( );
appContext.put( EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
renderContext );
task.setAppContext( appContext );

Jason Weathersby
BIRT PMC
Previous Topic:Can't turn off page breaks in table
Next Topic:Any suggestions on how to implement this groupby?
Goto Forum:
  


Current Time: Thu May 01 07:12:09 EDT 2025

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

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

Back to the top