How can I set an Active Document?

S

soso

Hello All!

I have ctrlVisio ActiveX control and use it in a function that opens Visio
Documents as follows:



ctrlVisio.Window.Application.Documents.Add(NewDocumentPath)

ctrlVisio.Window.Application.Windows.Item(ctrlVisio.Window.Application.Windo
ws.Count).Activate()



but see only an empty document. Could someone explain why?



Initially I want to load several Visio Documents in the Visio application
hosted by the control and switch view between them in order to eliminate
ctrlVisio.Src() function usage.



Thank you,

Soso.
 
N

Naresh Nichani MVP

Hi:

The Visio 2003 ActiveX Control can open only one drawing at a time.

Regards,

Naresh Nichani MVP
 
S

soso

Hi,

I got the point. Actually several Visio ActiveX components in on application
are managed by the same instance of Visio app somewhere in background.
Because of that it's no point in pragrammatically updating the
Application.Documents collection.

Thank you,
soso.
 
Top