Trying to write a string value into a Cell exception 0x86DB0425 is thrown

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?

March 9th, 2015 4:37pm

It wants a formula, not a string. If you want to write a string then use the Result or ResultStr method.

Free Windows Admin Tool Kit Click here and download it now
March 9th, 2015 5:28pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics