MATLAB: Does the image on the title page not appear when I deploy the report files from the MATLAB Report Generator

generatorimageMATLAB Report Generatorreporttitle

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.

Best Answer

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.