Converting a Hyperlink to a Smarttag

G

Guido

Hello!

I have EPC-Models in Visio with a couple of hyperlinks behind the shapes. I
have implemented an add-in with Visual Studio 2008 using c#. The add-in has
an DocumentOpenedEventHandler noticing when a document is loaded and
automatically adds smarttags to the shapes with the hyperlinks:

currentShape.AddNamedRow((short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionAction, "Hinterlegungen", 0);
currentShape.get_CellsU("Actions.Hinterlegungen.Action").FormulaU =
"RUNADDONWARGS(\"QueueMarkerEvent\",\"SOLUTION=SPVSO /EVENT=100\")";
currentShape.get_CellsU("Actions.Hinterlegungen.Menu").FormulaU =
"\"Hinterlegungen\"";
currentShape.get_CellsU("Actions.Hinterlegungen.TagName").FormulaU =
"\"Hinterlegungen\"";

currentShape.AddNamedRow((short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionSmartTag,
"Sharepoint", (short)Microsoft.Office.Interop.Visio.VisRowTags.visTagDefault);
currentShape.get_CellsU("SmartTags.Sharepoint.TagName").FormulaU =
"\"Hinterlegungen\"";

The problem is that I have implemented the drawing control in a website and
when i start the drawing control with a visio file the smarttags are created
but they do not work. But when i copy the URL, close the browser window, open
a new browser window, paste the URL and reload the page everything works
fine. Is there anyone who has an idea solving the problem? Is there a way to
directly start functions in the add-in from visio (e.g. in the
action-sections of the shapesheets)

Best,
Daniel
 

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