Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » prob html(image)
prob html(image) [message #159747] Wed, 10 May 2006 09:47
Uttam Ghosh is currently offline Uttam GhoshFriend
Messages: 39
Registered: July 2009
Member
hi


I have a java code to generate pdf & html of a given rptdesign.

I use birt-report-framework-S20050928.zip,
eclipse-SDK-3.1-win32.zip,
emf-sdo-xsd-SDK-2.1.0.zip,
GEF-ALL-3.1.zip


Now probleam is

when i insert an image in rptdesign this is done well in pdf but not in
html, in html there r no image.
Also there r no error message
*************************************tomcat***************** ********************************
reportName==5
reportType==HTML
HTML File
May 8, 2006 1:32:51 PM org.eclipse.birt.core.util.BirtTimer logTimeTaken
INFO: Engine startup takes 10 Milliseconds.
May 8, 2006 1:32:52 PM org.eclipse.birt.data.engine.impl.DataEngineImpl
<init>
INFO: Data Engine starts up
May 8, 2006 1:32:52 PM
org.eclipse.birt.report.engine.content.impl.MasterPageCon
tent initSimpleMasterPage
INFO: The property HeaderHeight is not set. Use Default 1 cm.
May 8, 2006 1:32:52 PM
org.eclipse.birt.report.engine.content.impl.MasterPageCon
tent initSimpleMasterPage
INFO: The property FooterHeight is not set. Use default 1 cm.
May 8, 2006 1:32:52 PM org.eclipse.birt.data.engine.odaconsumer.Driver
setLogCon
figuration
INFO: ODA driver does not have valid trace logging defined in the plug-in
optio
ns or plugin.xml file.
May 8, 2006 1:32:53 PM
org.eclipse.birt.data.engine.executor.cache.SmartCache in
itInstance
INFO: memoryCacheRowCount is 20000
May 8, 2006 1:32:53 PM
org.eclipse.birt.data.engine.executor.cache.SmartCache in
itInstance
INFO: MemoryCache is used
May 8, 2006 1:32:53 PM
org.eclipse.birt.data.engine.executor.cache.SmartCache in
itInstance
INFO: Time consumed by cache is: 0 second
May 8, 2006 1:32:53 PM org.eclipse.birt.data.engine.impl.DataEngineImpl
shutdown
************************************************************ *******************************
This is my java code
/*********************************************************** ************************/
EngineConfig config = new EngineConfig( );

config.setEngineHome( "../webapps"+contextPath );

HTMLEmitterConfig hc = new HTMLEmitterConfig( );
HTMLServerImageHandler imageHandler = new HTMLServerImageHandler( );
hc.setImageHandler( imageHandler );
config.setEmitterConfiguration( HTMLRenderOption.OUTPUT_FORMAT_HTML, hc );
ReportEngine engine = new ReportEngine( config );
IReportRunnable report = null;
try
{
report = engine.openReportDesign( name );
}
catch ( EngineException e )
{
System.err.println( "Report " + name + " not found!\n" );
engine.destroy( );
return;
}

if ( format != null )
{
IRunAndRenderTask task = engine.createRunAndRenderTask( report );
HTMLRenderOption options = new HTMLRenderOption( );
options.setOutputFormat( format );

options.setOutputFormat(format);


options.setOutputStream( outputStream );
task.setRenderOption( options );
task.setParameterValues( params );

try
{
task.run( );
task = null;
}
catch ( EngineException e1 )
{
System.err.println( "Report run failed.\n" );
System.err.println( e1.toString( ) );
}
}
engine.destroy( );

/*********************************************************** ************************/
How can i solve this probleam. Pleasr reply.
Previous Topic:Page Breaks on PDF & nested grids
Next Topic:How to change the 'extensionID' of a datasource at runtime ?
Goto Forum:
  


Current Time: Sat Jul 13 17:13:56 GMT 2024

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

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

Back to the top