Why does the image on the title page not appear when I deploy the report files from the MATLAB Report Generator?

2 views (last 30 days)
Why does the image on the title page not appear when I deploy the report files from the MATLAB Report Generator?
I am using MATLAB Report Generator 1.3 (R13SP1) to create a report. The title page contains an image. It displays correctly until I move my report files to another computer. The new image does not appear on the new computer.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
In MATLAB Report Generator 1.3 (R13SP1) the save option only exists for image components of a report.
As a workaround, you can manually put the desired title page image in the "reportname_html_files" folder which is created upon report generation. Then, the HTML-file can be manually edited to create a relative link. For example, in the generated HTML-file, the original line of code pointing to the image will be similar to:
<IMG
SRC="file://C:/WINNT/Profiles/All Users/Documents/My Pictures/Sample Pictures/Winter.jpg"
ALT="">
Changing this line to the following will create a relative link to the picture in the report folder that will be maintained during deployment:
<IMG
SRC="./reportname_html_files/Winter.jpg"
ALT="">
Note this line of code will appear in the HTML-file in the code for the title page. If the file is long, try searching for:
CLASS="TITLEPAGE"
The image source line should be slightly lower in the code.

More Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products


Release

R13SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!