Print text using Microsoft Word

Print files that can open in Word, using a Word COM server.

You are now following this Submission

[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 (2026). Print text using Microsoft Word (https://in.mathworks.com/matlabcentral/fileexchange/6231-print-text-using-microsoft-word), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0