How to add visio comments (Annotation) via C# / VB.NET code

S

srini

Hi, i am using Visual Studio 2005 and Visio 2003 pro sp2.
I am using C# code to dynamically generate visio drawings.

As i am drawing shapes, i could insert Shape Screen Tip by the following C#
code:
objShapeCell =
objShapeSub.get_CellsSRC((short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.VisRowIndices.visRowMisc,
(short)Microsoft.Office.Interop.Visio.VisCellIndices.visComment);

objShapeCell.FormulaU = "\"" + strSomeText + "\"";

However, i am not able to add any Comments (Annotations). I don't want to
add reviewer's comments. I don't want to turn on 'Track Markup' but would
like to insert comments on the active document as i am drawing shapes.

a) How do i turn Markup Tracking to Off so that i can make changes to the
original document as i am drawing?
b) How do i declare and place a MarkUp in a specific location?
c) How do i add Comment to this MarkUp?

Thanks,
-srinivas yelamanchili
 

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