Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Visio Newsgroups
Visio Developers
Org Wiz shape resize
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="JP, post: 5066253"] 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" [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Visio Newsgroups
Visio Developers
Org Wiz shape resize
Top