Why does Word not display Simulink images from Simulink Report Generator?
Show older comments
I have followed templates and guides for creating a Simulink Report and found limitations in the formatting with this so have created additional word Macros for resolving the limitations.
However when using my script to create a .pdf file, it looks as expected from the guides but when creating a .docx file all of the images of the systems are labelled "can't be displayed". Does Word have an issue with how the images are added onto it?
In addition when creating the .pdf and using Word's inbuilt converter the images end up altered with grey boxes all over them.
Using MATLAB 2021a and Word 2016 and am on a work system so cannot upgrade Word. Is this a known bug?
2 Comments
Rahul Singhal
on 4 Aug 2021
Hi Gideon,
If you are using slreportgen.report.Diagram reporter to create system snapshots, it creates an SVG image by default. Word provided support for SVG images starting in Word 2016, so I would expect the images to appear. In any case, can you try using any other image format, for e.g. EMF for the Word report.
-Rahul
Gideon Bergbaum
on 4 Aug 2021
Accepted Answer
More Answers (0)
Categories
Find more on Create Report Programs Using the Report API in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!