mlreportgen.utils.WordApp class

Package: mlreportgen.utils
Superclasses:

Wrap Microsoft Word application

Construction

mlreportgen.utils.WordApp wraps a Word application as a .NET object. Only one Word application object can be active to use this utility. To obtain the active Word application object, use the instance method.

Methods

instance

Return active Word application object

wdapp = mlreportgen.utils.WordApp.instance()

show

Show Word application

mlreportgen.utils.WordApp.show(wdapp)

hide

Hide Word application

mlreportgen.utils.WordApp.hide(wdapp)

close

Close Word application

mlreportgen.utils.WordApp.close(wdapp)

isOpen

Test if Word application is open

mlreportgen.utils.WordApp.isOpen(wdapp)

isVisible

Test if Word application is visible

mlreportgen.utils.WordApp.isVisible(wdapp)

netobj

Return a .NET Word application object

netwdappobj = mlreportgen.utils.WordApp.netobj(wdapp)

Examples

Find and Close Word Application Instance

wdapp = mlreportgen.utils.WordApp.instance();
close(wdapp)

Introduced in R2018b