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

show(wdapp)

hide

Hide Word application

hide(wdapp)

close

Close Word application

close(wdapp)

isOpen

Test if Word application is open

isOpen(wdapp)

isVisible

Test if Word application is visible

isVisible(wdapp)

netobj

Return a .NET Word application object

netwdappobj = netobj(wdapp)

Examples

Find and Close Word Application Instance

wdapp = mlreportgen.utils.WordApp.instance();
close(wdapp)
Introduced in R2018b