Creating Visio diagrams from .NET

D

Doogal

Hi

I'm writing a little C# library that generates a Visio diagram. Currently
I'm using the Visio application as an out-of-process COM server. This works
but I'm not too keen on the application appearing momentarily before I have
chance to hide it. Is there a way to get access to the Visio API through an
in-process COM object? I see there is also an ActiveX control which I tried
using but creating it in memory didn't work too well, I presume it expects
to reside on a form somewhere?

Chris Bell
 
A

Al Edlund

you might consider opening the application invisibly. The activex control
expects to be in a host container, yes.
al
 
D

Doogal

How do I make the application invisible? I've got the following code and the
spalsh screen and main Visio window still appears briefly before
disappearing

Microsoft.Office.Interop.Visio.Application visioApplication =
new Microsoft.Office.Interop.Visio.Application();
visioApplication.Visible = false;
 
D

David Parker

How about:?

Microsoft.Office.Interop.Visio.InvisibleApp visioApplication =
new Microsoft.Office.Interop.Visio.InvisibleApp();
 

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

Top