C# and the ActiveX of Visio2003 (Visocx.dll).

G

genc ymeri

Hi,
I have imported in a C# form the ActiveX of Visio2003 (Visocx.dll). I have
these questions :

1. How can I open a template/stencils/drawing files in this activeX ? (any
code/link/ it will be greatly appreciated)

2. Is it possible to show the Visio Menus in the C# form ?

Thank you very much in advance.
 
M

Mai-lan [MS]

Hi, there: Check out the Office Plan sample application in the Visio 2003
SDK, which you can download at:
http://www.microsoft.com/downloads/...BD-B0BB-46E7-936A-B8539898D44D&displaylang=en.
It provides an example of how to use the ActiveX control from a C# winform.

The Visual Studio.NET editor does not support OLE2 style menu merging, which
means you have to use IOLECommandTarget to merge menus for managed code. For
more information, you can check older posts in this newsgroup and review
this article:
http://msdn.microsoft.com/library/d...en-us/odc_2003_ta/html/odc_landvisio03_ta.asp

--
Thanks,
Mai-lan

Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no
rights.
 
G

genc ymeri

It provides an example of how to use the ActiveX control from a C#
winform.

What it is the name of the sample and how can I find it ? I installed SDK
visio and just can't find it.

Any help very much appreciated !
 
M

Mai-lan [MS]

It is called "Office Plan" and installs by default into \program
files\microsoft office\visio11\sdk\samples\office plan\csharp.

Note that you can also get an overview of all the samples in the SDK from
the link in the Visio SDK sub-menu that you can access by clicking Start |
All Programs | Microsoft Office Visio 2003 SDK

Thanks,
Mai-lan
 

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