How do I add page numbers to a Word document generated with the Publisher in MATLAB 8.2 (R2013b)?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 22 Nov 2013
Answered: MathWorks Support Team
on 22 Nov 2013
I would like to add page numbers to the Word document that is created when publishing my MATLAB files. Is it possible to do this with the PUBLISH function in MATLAB 8.2 (R2013b)?
Accepted Answer
MathWorks Support Team
on 22 Nov 2013
The ability to add page numbers to published Word documents is not available in MATLAB.
As a workaround you can use the ability of MATLAB to control Microsoft Word with the ACTXSERVER function to add page numbers to the Word document after publishing. Please run the attachment for an example of adding a custom footer that insert the current date and page number fields.
0 Comments
More Answers (0)
See Also
Categories
Find more on Use COM Objects in MATLAB 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!