Image display error on Birt report [message #83311] |
Sat, 22 October 2005 11:58 |
Eclipse User |
|
|
|
Originally posted by: jweng.us.ibm.com
1. I set up the image handler in my application for html format out file
and pdf format out file. For example:
public void setImageHandler(){
hc = new HTMLEmitterConfig();
HTMLCompleteImageHandler imageHandler = new HTMLCompleteImageHandler();
hc.setImageHandler(imageHandler);
}
public void setHTMLConfiguration(){
config.setEmitterConfiguration(HTMLRenderOption.OUTPUT_FORMA T_HTML,
hc);
}
public void setPDFConfiguration(){
config.setEmitterConfiguration(HTMLRenderOption.OUTPUT_FORMA T_FO, hc);
}
2. I insert an image through Image builder which locates in my local file
system. When I click "Preview", it displays correctly. For example:
C:/2005/eNAV/eNAV For Birt 3/splash.bmp (or file:///C:/2005/eNAV/eNAV For
Birt 3/splash.bmp)
3. When I launch the application to generate and display the report:
For the html format file:
a. If the browser is IE5.5 or higher, it displays the image and also gives
me the error message as follow:
There are errors on the report page:
- There are error(s) in Image:null
Error0 : data.engine.InvalidJSExpr(1 time)
detail: Invalid Javascript expression: C:/2005/eNAV/eNAV For Birt
3/splash.bmp
invalid flag after regular expression
invalid flag after regular expression
b. For the other browser (for example: Mozilla Firefox). It display the
error message the same as above only.
For the pdf format file:
It pop up and error window, adn gives the following error message:
There was an error opening this document. The file is damaged and could
not be repaired.
Does anyone know this error? How to fix it?
Thank you in advance for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.03460 seconds