W
Wayne Birch
Hello everyone,
Ive got this solution written in VB6 that uses the Visio API to create
organization charts programmtically. I didn't write it actually, another
developer who has now left wrote it. I've got one problem left to solve -
getting the page size to fit the chart. Some of the charts are larger than
the page size so when they get exported they get shrunk to unreadable sizes.
After much investigation I discovered the ResizeToFitContents method of the
Page object. Trouble is it doesn't work in Visio 2000, which is what the
solution was developed for. After further investigation I have discovered
that it works in Visio 2003. So, gleefully upgraded to Visio 2003 only to
find that the solution no longer works.
The troublesome lines of code are attempts to set ShapeSheet properties of
shapes drawn onto the page, namely: -
Prop.ChildLayoutStyle
User.AL_Justification
User.AL_JustOffset
User.AL_cyBtwnSubs
User.AL_cxBtwnSubs
After much investigation (again) I have discovered that these properties no
longer exist in the organization chart template in Visio 2003. I have
determind that first one is being used to adjust the way child subordinates
are laid out (equivalent to clicking on Arrange Subordinates in the
interface).
So, my questions are: -
1) Where did these properties disappear to in the Visio 2003 Organization
Chart Template and why?
2) Is there another way of achieving the same thing in Visio 2003?
I've tried lots of things to get round this including trying to use the
Visio 2000 Organization Chart Template with Visio 2003 (that comes with it's
own set of problems which really aren't worth the effort to solve, if they
are solvable at all).
Any help would be gratefully appreciated because a lot of effort was put in
to get this far and if I can't solve this then the project will be scrapped,
which is the last thing I want.
TIA,
Wayne
Ive got this solution written in VB6 that uses the Visio API to create
organization charts programmtically. I didn't write it actually, another
developer who has now left wrote it. I've got one problem left to solve -
getting the page size to fit the chart. Some of the charts are larger than
the page size so when they get exported they get shrunk to unreadable sizes.
After much investigation I discovered the ResizeToFitContents method of the
Page object. Trouble is it doesn't work in Visio 2000, which is what the
solution was developed for. After further investigation I have discovered
that it works in Visio 2003. So, gleefully upgraded to Visio 2003 only to
find that the solution no longer works.
The troublesome lines of code are attempts to set ShapeSheet properties of
shapes drawn onto the page, namely: -
Prop.ChildLayoutStyle
User.AL_Justification
User.AL_JustOffset
User.AL_cyBtwnSubs
User.AL_cxBtwnSubs
After much investigation (again) I have discovered that these properties no
longer exist in the organization chart template in Visio 2003. I have
determind that first one is being used to adjust the way child subordinates
are laid out (equivalent to clicking on Arrange Subordinates in the
interface).
So, my questions are: -
1) Where did these properties disappear to in the Visio 2003 Organization
Chart Template and why?
2) Is there another way of achieving the same thing in Visio 2003?
I've tried lots of things to get round this including trying to use the
Visio 2000 Organization Chart Template with Visio 2003 (that comes with it's
own set of problems which really aren't worth the effort to solve, if they
are solvable at all).
Any help would be gratefully appreciated because a lot of effort was put in
to get this far and if I can't solve this then the project will be scrapped,
which is the last thing I want.
TIA,
Wayne