I am automating Visio from Interop for an application. All is going well, the only problem is that I don’t want the end user to see the visio canvas being populated, which is what is happening at the minute. I am (from .Net) programatically opening a Visio canvas and populating it with shapes, and this process is being displayed to the user.
I have looked through the properties for the Microsoft.Office.Interop.Visio.Application object, and the Microsoft.Office.Interop.Visio.Document and I can’t find a boolean I can set to false to hide this from the user. I have automated both Excel and Access in the past, and in both there is simply a boolean you can set to false, and then the end user doesn’t see the nuts and bolts of the automation process.
My question is, is there a way to hide the Visio UI from the end user when populating a canvas programatically with shapes via .Net Interop? If so, how do I do this?
Thanks
On the
Applicationobject is aWindowsproperty that contains a collection of Windows. You can iterate over the Windows and set the Window’sVisibleproperty to false.