Modify the ShapeSheet
Introduction
A ShapeSheet update allows you to efficiently modify the the contents (formulas, results, or both) of a shapesheet.
Getting started
Imagine we want to set the pinx of a shape. To start we'll use the slow way
Updating a single cell on a single shape Now let's map this to an update structure. Because this update occurs to a single specific shape we use the SRCUpdate class
The SetFormula method will automatically convert integers and doubles to the correct string form, so the example below is also valid
And of course to set multiple cells is simple...
The SRCUpdate.SetFormula method will automatically convert integers and doubles to the correct string form, so the example below is also valid
You can set the Results of a cell also
If you mix both formulas and results in an update, the results will be set first and then the formulas will be set
Setting multiple cells for multiple shapes This is simple. First we need to identify the shapes by their ID. And then we use the SIDSRCUpdate object and execute the update against a page that contains the object.
Last updated