Does the Report Generator have a stylesheet editor feature?

1 view (last 30 days)
For example, how do I control the margin sizes of my Word document when using the MATLAB and Simulink Report Generator?
When creating a Word document in the MATLAB Report Generator, the margins width seems to be fixed. I would like a way to control the margin width.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
The ability to do directly control margin sizes in generated Word documents is not available in MATLAB and Simulink Report Generator.
When using the MATLAB Report Generator to create Word documents, there is no simple interface that allows you to choose the margins of the document being creating. The XML report format has stylesheets (e.g., Standard Print, Compact Print) with different default margin settings for each.
As a workaround, you can add your own stylesheet with the appropriate modifications for values such as margin sizes. In order to create your own stylesheet, please look at the examples in the document located as follows, where $MATLAB stands for your root MATLAB directory.
$MATLAB\toolbox\rptgen\rptgen\rptstylesheets.xml
(where $MATLAB is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB command prompt.)
You can add your stylesheets here. PLEASE NOTE: This workaround is not fully tested, and is therefore not officially supported by MathWorks.

More Answers (0)

Categories

Find more on Simulink Report Generator 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!