making add-in for Visio using .NET

A

Amir

Hi
I want to make an add-in for visio 2003 using C#.NET or VB.NET.
Actually I wanna make a window in visio using VBA (Macro) and then call the
add-in that load a .NET windows form inside this visio window.
Infact I pass that visio window's handler to the add-in and add-in makes the
..NET windows form it's child.
I made the add-in using Visio PIA and registered the assembly in windows
registry using regasm.exe.
But when the VBA macro try to make an object from that tlb, visio raise an
exceprion that says "can not find the file or assembly, or some of it's
resources"....

I'm doing that like this:
Set obj=Createobject("MyAddIn.Addon") that "MyAddIn" is the name of that
converted assembly and "Addon" is a class inside it that make the
parent-child relationship

Making the add-in, I made a classlibrary project and add a windows form to
that project.
Meanwhile, to avoid using shims, I set the visio's security level to Medium.

please help...
Thanks in advance
 
D

David Parker [Visio MVP]

Are you making the window in Viso using VBA rather than .net? Why?
Have you looked at the Visio window examples in the Visio 2003 SDK?
This will also provide you Visio Add-in Wixards for c#, vb.net & c++
 
A

Amir

Thanks
It was helpfull...

David Parker said:
Are you making the window in Viso using VBA rather than .net? Why?
Have you looked at the Visio window examples in the Visio 2003 SDK?
This will also provide you Visio Add-in Wixards for c#, vb.net & c++
 

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