MATLAB: Is it possible to add the ability to add headers and footers in the MATLAB Report Generator

andcustomfootersgeneratorheadersMATLABMATLAB Report Generatorreport

I would like to have the ability to add headers and footers in the MATLAB Report Generator.

Best Answer

This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3) for PDF Reports. In PDF reports, two cell groups are available for this purpose, Header Content and Footer Content. You can use templates to specify XML code that defines the content for a header or a footer.
Follow the steps below to create a custom stylesheet for PDF with custom header and footer contents:
1) Open the report setup file in Report Explorer
2) From the menu bar, click Tools > Edit Stylesheet.
3) Find the -Formatting Objects (PDF)—in the middle window and double click on ‘Custom Header’
4) Change the display name in the properties pane on the right to ‘My Custom Header’ (or any desired name)
5) In the left window, go to the ‘Header content’ and ‘Footer content’ tabs and replace the default values with custom content.
6) Save the stylesheet (as a ‘.rgs’ file) on the MATLAB path
7) Select the report setup file in the left window,
In the selection lists under the ‘Report Format and Stylesheet’ area of the Properties pane on the right:
Specify Acrobat (PDF) for File format
Specify My Custom Header for stylesheet.
8) Save the report setup file and generate report.
In MATLAB 7.14 (R2012a), a good tutorial on adding a custom header to a report is available in the section 'Adding Graphics to Headers in a PDF Report' of the following page:
For more information on editing and customizing a stylesheet, refer to the following documentation page and the links within:
For product releases prior to Release 14 Service Pack 3 (R14SP3), there are no workarounds.