Images relative in HTML report Reference images in HTML in a relative way
Posted 23 July 2012 - 05:55 AM
I have a stand-alone report application, that generates HTML-reports and stores it to a specified location.
Therefore I have a special directory-structure, e.g.:
C:\temp\output // main output folder
C:\temp\output\resources // contains images
When I open the generated HTML file I see that the "src"-attribute of the IMG-tag references the file in an absolute way:
This is not good, because so the report can only be shown on a system where the directory structure is identical!
What I want is a relative reference like this:
The absolute part is replaced by the '.' that points to the current directory.
Is it possible to configure the ReportEngine in that way?
Unfortunately I didn't find an answer in the BIRT-books or the internet.
Thanks for your help!
Posted 05 December 2012 - 05:58 PM
I am new for birt. but I hope to give some help because I often be helped by other good guys.
Have a try this <img src="resources/MyImage01.png"></img>, without the "file:./" if the resources file in the same folder with the caller page.