Access Document properties in a Visio Add In

Joseph Mancini 81 Reputation points
2021-02-16T21:30:01.04+00:00

I'm writing a VSTO Add-in for Visio. Having a heck of a time getting access to the active document and it's properties. On ThisAddIn, I added the DocumentCreated event which has a document property in it. But I can only get the name property of the document from doc object. Any other property says it's not available on the document object. Saw some posts about the properties not being available in Visio like they are Excel/Word. If so, how do I access the document properties?

Private Sub Application_DocumentCreated(doc As Document) Handles Application.DocumentCreated
    myDoc = doc


End Sub
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,687 questions
0 comments No comments
{count} votes