Hi folks,
Fairly new to birt. Using version 2.3.1 in eclipse 3.4.1. Have built a project with the BIRT viewer included. Have created basic libraries/templates/reports to make myself happy I could do the basic steps.
Above went smoothly in eclipse designer and then when deployed in the viewer.
But... I'm stuck on something I guessing must be pretty simple...
<clears throat...> If I include an image in my report design, using 'Select Image From: URI' then it displays in the designer, but not in the report when I look at it in the viewer.
The URI I entered was:
"images/logo.gif" (including the quotes)
The BIRT paramaters in my web.xml are attached below.
When I view the report in the viewer I see the alt text that I added for it, I get a java 'file not found' on the server console. When I check the image properties in a browser I see it is trying to display:
http://<server>/<context>/frameset/images/logo.gif
... and not...
http://<server>/<context>/report/images/logo.gif
... as I would expect.
I'm guessing putting images in the same folder that BIRT uses for generated images mightn't be great - but can anyone spot what I'm doing wrong?
Many thanks!
<!-- BIRT Context Params -->
<context-param>
<description>If usr can only access the reprot resources under working folder. Default is false</description>
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<description>The generated document files directory. Default to [application root]/documents</description>
<param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
<param-value>documents</param-value>
</context-param>
<context-param>
<description>If turn on the function that supports print on the server side(ON|OFF).Default to on.</description>
<param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
<param-value>OFF</param-value>
</context-param>
<context-param>
<description>Memory size(MB) for creating cube.</description>
<param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
<param-value></param-value>
</context-param>
<context-param>
<description>Directory to store all birt report script libraries (JARs). Default to [application root]/scriptlib</description>
<param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
<param-value>scripts</param-value>
</context-param>
<context-param>
<description>If always overwrite generated document file. Default to true</description>
<param-name>BIRT_OVERWRITE_DOCUMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<description>Output images/charts directory. Default to [application root]/report/images</description>
<param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
<param-value>report/images</param-value>
</context-param>
<context-param>
<description>BIRT viewer extended configuration file</description>
<param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
<param-value>WEB-INF/viewer.properties</param-value>
</context-param>
<context-param>
<description>Dataset rows limited when preview report. Default to return all rows</description>
<param-name>BIRT_VIEWER_MAX_ROWS</param-name>
<param-value></param-value>
</context-param>
<context-param>
<description>Cube fetch row levels limited when preview report (Only support to preview a report design file using preview pattern). Default to return all levels</description>
<param-name>BIRT_VIEWER_MAX_CUBE_ROWLEVELS</param-name>
<param-value></param-value>
</context-param>
<context-param>
<description>Default locale setting</description>
<param-name>BIRT_VIEWER_LOCALE</param-name>
<param-value>en_IE</param-value>
</context-param>
<context-param>
<description>Cube fetch column levels limited when preview report (Only support to preview a report design file using preview pattern). Default to return all levels</description>
<param-name>BIRT_VIEWER_MAX_CUBE_COLUMNLEVELS</param-name>
<param-value></param-value>
</context-param>
<context-param>
<description>Report resources(design files or document files) directory for preview. Default to [application root]</description>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value>report</param-value>
</context-param>
<context-param>
<description>Report Engine logs directory. Default to [application root]/logs</description>
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
<param-value>WEB-INF/logs/birt</param-value>
</context-param>
<context-param>
<description>Resource location directory(library files, images files or others). Default to [application root]</description>
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value>report</param-value>
</context-param>
<context-param>
<description>If force optimized HTML output.Default to true</description>
<param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<description>Report engine log level.( ALL|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|OFF )</description>
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>WARNING</param-value>
</context-param>