Home
Analytics
SEVERE: ReferenceError: "images" is not defined. (<inline>#1)
trivinci
Hello,
I have a couple .png files included in my report. They are kept in my "images" subdirectory. During my runAndRender, I get exceptions (one for each image) indicating that my images directory is not defined.
The images render properly in my final report.
Does anyone have any pointers on how to eliminate the errors?
TIA for any insight you can provide on this.
If it helps, my image block is auto-generate by BIRT RCP Designer as follows
<image id="43">
<property name="height">38px</property>
<property name="width">234px</property>
<property name="source">url</property>
<expression name="uri">images/Application.png</expression>
</image>
Find more posts tagged with
Comments
bhanley
Did you set the path to your image directory? You need to call the HTMLRenderContext.setBaseImageURL(...) method to point the engine in the right direction.
Another option is to simply embed your images in the report itself. This means no base directory and not moving images around as you deploy your report. To define an embedded image, you add the image in the same way you did defining it via a URI but instead select the "embedded" radio button. This will create a copy of the image in the report design.