I am trying to write a string value into the Formula of a PropertyCell/Row that I have created:
public short setShapeProperty(Visio.Shape myShape, string shapePropertyRowName, string shapePropertyLabel, Boolean hide, string value)
{
short iRow = 0;
try
{
//create the property Row
iRow = myShape.AddNamedRow((short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionProp, shapePropertyRowName.ToString(), (short)Microsoft.Office.Interop.Visio.VisRowTags.visTagDefault);
//write the value
myShape.get_CellsSRC((short) Visio.VisSectionIndices.visSectionProp, iRow, (short) Visio.VisCellIndices.visCustPropsValue).Formula="me";
//formatHelper.StringToFormulaForString(
}
catch (Exception ex )
{
string f = ex.ToString();
}
an exception is throw on the setting of "me" to the cell. The exception code is 0x86DB0425.
Anybody have any ideas?