Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Multiple HTML Pages and Hyperlink Using Birt
Multiple HTML Pages and Hyperlink Using Birt [message #1804921] Wed, 03 April 2019 10:05
venkatesh veera is currently offline venkatesh veeraFriend
Messages: 5
Registered: November 2018
Junior Member
Hi everyone ,
I am Using Birt Engine to create single HTML page But now I have to create multiple HTML Pages and have a hyperlink on click on it will take to other Pages i.e main page and sub Pages.
I must have Tables in each page and in which some cells must have Images.
I don't know how add Images into cell by taking image path.
Can any please help me ,
Thanks in advance
venkatesh



config = new EngineConfig( );           
config.setLogConfig("birtLogs", Level.WARNING);
/**
 * shutting down the previously running platform.it is
 * Important One For refreshment of the Platform.
 */
IRegistryProvider ireg = RegistryProviderFactory.getDefault();
 org.eclipse.birt.core.framework.Platform.shutdown();
 RegistryProviderFactory.releaseDefault();
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject( 
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );      

IReportRunnable design = null;
//Open the report design
design = engine.openReportDesign("new_report_1.rptdesign");
designHandle = (ReportDesignHandle) design .getDesignHandle();
designFactory = designHandle.getElementFactory();
 designHandle.setProperty("title", "Description");
// this Method will create contents like header,footer and tables  using 
// designhandle and design factory

createContents();
IRunAndRenderTask task = engine.createRunAndRenderTask(design);         


HTMLRenderOption options = new HTMLRenderOption();      
options.setOutputFileName("C:\\report\html");
options.setOutputFormat("html");
options.setHtmlRtLFlag(false);
options.setEmbeddable(false);
options.setImageDirectory("C:\\test\\images");
task.setRenderOption(options);
task.run();
task.close();
engine.destroy();
}catch( Exception ex){
 ex.printStackTrace();
}       
finally
    {
   Platform.shutdown( );
}

}
}

[Updated on: Thu, 04 April 2019 05:15]

Report message to a moderator

Previous Topic:org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
Next Topic:Chart value change color
Goto Forum:
  


Current Time: Tue Mar 19 04:59:26 GMT 2024

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

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

Back to the top