J
JP
I am developing a basic app in .net that passes args to the org chart wizard
to produce an org chart based on data storted in sql server.
Once the shapes and data are generated and displayed the app loops through
the shapes to resize them vertically to fit the text. To accomplish this I am
using the following:
thisShape.Cells("Height").FormulaForce = String.Format("=TEXTHEIGHT(TheText,
1) * 1.025")
This appears to work - in fact you can see it working - for nearly all
shapes however invariably there are a few shapes for which the text still
hangs over the shape. If I run the app again it will be a different,
seemingly random few shapes which do not get fully resized. Manually
reviewing the shape sheet shows that the formula is being correctly inserted.
Any thoughts are appreciated.
---
A few additional items regarding environment:
1. Visio 2007
2. VS 2005, vb.net
3. I am passing commandPart = "/SHOW-DIVIDER-LINE=1"
to produce an org chart based on data storted in sql server.
Once the shapes and data are generated and displayed the app loops through
the shapes to resize them vertically to fit the text. To accomplish this I am
using the following:
thisShape.Cells("Height").FormulaForce = String.Format("=TEXTHEIGHT(TheText,
1) * 1.025")
This appears to work - in fact you can see it working - for nearly all
shapes however invariably there are a few shapes for which the text still
hangs over the shape. If I run the app again it will be a different,
seemingly random few shapes which do not get fully resized. Manually
reviewing the shape sheet shows that the formula is being correctly inserted.
Any thoughts are appreciated.
---
A few additional items regarding environment:
1. Visio 2007
2. VS 2005, vb.net
3. I am passing commandPart = "/SHOW-DIVIDER-LINE=1"