Using Visio InterOp in VB.Net - Loading Visio silently

  • Thread starter Thread starter Dean Richardson
  • Start date Start date
D

Dean Richardson

Hello,

I am having problems loading the visio application silently. When I
load word in the background in VB.NET, it remains hidden and the user
doesn't know its loaded.

However, when I load Visio in the background, the window pops up and
then disappears. Is this a fault with the visio interop libraries, or
can this be fixed?

At the moment, I am using the same code that opens word to open visio.

Is there a better way to open visio in VB.NET?

Thanks in Advance.

Dean
 
It might be easier to help you if you post the code you are using.

Robin S.
 
I've the same problem
I'd like to create a Visio Document silently but Visio is opened!!!

This is my code:

Dim vApp As Microsoft.Office.Interop.Visio.Application
Dim vDoc As Microsoft.Office.Interop.Visio.Document
vApp = New Microsoft.Office.Interop.Visio.Application
vDoc = vApp.Documents.Add("")
vDoc.SaveAs("c:\temp\Item1.vsd")
vDoc.Close()
vApp.Quit()
vDoc = Nothing
vApp = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top