Print text using Microsoft Word

Print files that can open in Word, using a Word COM server.
1.8K Downloads
Updated 12 Nov 2004

View License

[Word, msg] = LE_printViaWord(fileNames)

The function launches a Word COM server, opens and prints the given files.

The COM server handle is returned as first output argument (Word), and the user is advised to exit the server by typing Quit(Word) in the MATLAB command window.

Calling the function without input argument allows the user to select a file.

Example of use :
[Word, msg] = LE_printViaWord;
Quit(Word)

Please read the help text.

Cite As

Pierre Bulens (2024). Print text using Microsoft Word (https://www.mathworks.com/matlabcentral/fileexchange/6231-print-text-using-microsoft-word), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Use COM Objects in MATLAB in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0