Skip to content

Instantly share code, notes, and snippets.

@felixlindemann
Created August 11, 2013 15:37
Show Gist options
  • Save felixlindemann/6205393 to your computer and use it in GitHub Desktop.
Save felixlindemann/6205393 to your computer and use it in GitHub Desktop.
c# vsto getWordDoc
private Document getDoc()
{
if (this.doc == null) { this.doc = Globals.ThisAddIn.Application.ActiveDocument; }
return doc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment