Getting the base Document from ThisDocument

When developing a document level Add-In in visual studio, you may have a need to pass the current document to another function. This is tricky, because ThisDocument cannot be cast to a document object.

Turns out, ThisDocument inherits DocumentBase, and has a property called InnerObject. This is the Document.

Leave a Comment

Your email address will not be published. Required fields are marked *