Accessing Visio COM Objects without opening Visio.

S

SK

Hi.
I want to open an manipulate some Visio documents from my application,
but I don"t want that the Visio Window shows up. Is this possible? I
already tried to create the Application Object in process, but that
does not seem to work:

Visio::IVApplicationPtr app;
if (FAILED(app.CreateInstance(__uuidof(Visio::Application), NULL,
CLSCTX_INPROC))) {
std::cout << GetLastError();
} else {
std::cout << "OK";
}

Gives 14007 as an error.

Any other ideas?

Thank you!
 
G

geekgrrl

Hi.
I want to open an manipulate some Visio documents from my application,
but I don"t want that the Visio Window shows up. Is this possible? I
already tried to create the Application Object in process, but that
does not seem to work:

                Visio::IVApplicationPtr app;
                if (FAILED(app.CreateInstance(__uuidof(Visio::Application), NULL,
CLSCTX_INPROC))) {
                        std::cout << GetLastError();
                } else {
                        std::cout << "OK";
                }

Gives 14007 as an error.

Any other ideas?

Thank you!

Try Visio.InvisibleApp to get Visio without a window. This is working
for me through OLE in C++(MFC) with Visio 2003.
 

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