Is there a command line option for setting the image format for a Figure Snapshot component in MATLAB Report Generator?

3 次查看(过去 30 天)
I have a report file with several image snapshot components. I'd like to be able to generate HTML or RTF output from it. It works best if I set the components' 'Image file format' attribute as 'Automatic HG format' for HTML, and as 'Windows metafile' for RTF. I suppose I could use a 'Logical If' component and branch based on the output format, but I'd rather set the 'Image file format' attribute on the command line if possible.

回答(1 个)

Eric
Eric 2017-2-10
The "Automatic HG format" determines which image format to use from the MATLAB Report Generator Preferences. Try:
  1. Start Report Explorer
  2. File -> Preferences
  3. Format ID -> web (HTML)
  4. Change HG images to desired format
  5. Format ID -> Rich Text Format
  6. Change HG images to desired format
  7. Click OK
  8. Load your report (RPT) file
  9. Change all Figure snapshot components to use "Automatic HG format"
  10. Save your report.
Now when you generate an HTML or RTF report, you should get the image format set in your preference.

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by