problem with uml template in visio component in C#.net

A

Aale

Hi,
I developed a application using visio component in C#.net. I want to use UML
template and stencil in my application. I haven't any problem with stencil,
but when I set my template to UML template, that's not work probably.
Can anybody help me?!

Tnx for your attention to this problem.
 
P

Paul Herber

Hi,
I developed a application using visio component in C#.net. I want to use UML
template and stencil in my application. I haven't any problem with stencil,
but when I set my template to UML template, that's not work probably.
Can anybody help me?!

The UML template and stencils expect to find the UML addin, and only
the UML addin. Your own code may not work with this expecially if you
try to take control of any events the UML addin needs.
 
A

Aale

Hi,
Thanks for your reply :)
but I copy UML.VSL in my project path and write something like this in my
code:

Microsoft.Office.Interop.Visio.Application app =
this.axDrawingControl1.Document.Application;
app.Addons.Add("UML.VSL"); //add uml add-on
app.Documents.Add("UMLMOD_M.VST"); //set template to uml
template

but my problem didn't solve yet!
when I insert a uml shape in page and double click on it for show
properties, following error occur:

"This UML shape exist on a drawing page which is not part of a UML model
diagram.
This shape is designed to work in drawings created using the UML Model
Diagram template."
 
P

Paul Herber

Hi,
Thanks for your reply :)
but I copy UML.VSL in my project path and write something like this in my
code:

Microsoft.Office.Interop.Visio.Application app =
this.axDrawingControl1.Document.Application;
app.Addons.Add("UML.VSL"); //add uml add-on
app.Documents.Add("UMLMOD_M.VST"); //set template to uml
template

Don't know where you found code like that but it won't work. That
won't make your application use the template and addon correctly.
 
A

Aale

how can I do that correctly ?!

please help me.


Paul Herber said:
Don't know where you found code like that but it won't work. That
won't make your application use the template and addon correctly.
 

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