M
Mark Nelson [MS]
The Visio team would like to hear from developers who programmatically set
formulas and values in the Shapesheet. The basic way to change a Shapesheet
cell is with Cell.Result() or Cell.Formula(). There are also ways to change
cells in bulk.
Did you know that calls to Cell.Result or Cell.Formula can fail? Do you
know that Visio will throw an exception if the cell has a GUARD expression
in it?
We want to hear from you. Are you aware of this failure possibility? Do
you currently wrap your calls with error handling to prevent a crash in your
code? What do you do in your error handler (e.g. nothing / skip the cell,
show error message, try again with FormulaForce)?
Visio shapes are getting more sophisticated in behavior, and the GUARD
function is frequently used to prevent changes to the cells that provide
that behavior. However, your code has to trap exceptions in order to
interact with these shapes properly.
--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
formulas and values in the Shapesheet. The basic way to change a Shapesheet
cell is with Cell.Result() or Cell.Formula(). There are also ways to change
cells in bulk.
Did you know that calls to Cell.Result or Cell.Formula can fail? Do you
know that Visio will throw an exception if the cell has a GUARD expression
in it?
We want to hear from you. Are you aware of this failure possibility? Do
you currently wrap your calls with error handling to prevent a crash in your
code? What do you do in your error handler (e.g. nothing / skip the cell,
show error message, try again with FormulaForce)?
Visio shapes are getting more sophisticated in behavior, and the GUARD
function is frequently used to prevent changes to the cells that provide
that behavior. However, your code has to trap exceptions in order to
interact with these shapes properly.
--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.