Visio Org Chart Automation

R

Russell

I am evaluating Visio for producing Organization charts for my company and have been able to produce a standard Org Chart using a custom VB program. These Org. Charts have multiple pages and we would like to publish them to the web. I have two questions.
1). Is there a method in VBA which can be used to save my file as a web page? I have tried the "SaveAs" method using an ".htm" extension but it does not work properly as it only create one file (which is apparently the same format as an .VSD extension). The "Save As Web" option generates a host of files when it is executed from within the product.
2). Is there a method in VBA which can be used to re-arrange the subordinate boxes in an Org Chart (like the "Arrange Subordinates" option under the Organization Chart menu)?

Any suggestions would be welcome.

Thank you
 
A

Andy [MS]

Save as Web Page is the only way to save Visio files to htm format, unless
you want to save the files in another format and wrap them in htm yourself.

You can execute Save as Web Page via automation. This is a link to the Visio
2002 version:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devref/HTML/SAW_Basics_40.asp

One will be posted for 2003 at some point, however the SAW API didn't change
too much between 2002 and 2003.

Hope this helps.

--
Andy
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.


Russell said:
I am evaluating Visio for producing Organization charts for my company and
have been able to produce a standard Org Chart using a custom VB program.
These Org. Charts have multiple pages and we would like to publish them to
the web. I have two questions.
1). Is there a method in VBA which can be used to save my file as a web
page? I have tried the "SaveAs" method using an ".htm" extension but it
does not work properly as it only create one file (which is apparently the
same format as an .VSD extension). The "Save As Web" option generates a
host of files when it is executed from within the product.
2). Is there a method in VBA which can be used to re-arrange the
subordinate boxes in an Org Chart (like the "Arrange Subordinates" option
under the Organization Chart menu)?
 
R

Russell

Andy
Thank you for the info on the Save as Web API.

I had previously listed a second question: Is there a method in VBA which can be used to re-arrange th
subordinate boxes in an Org Chart (like the "Arrange Subordinates" optio
under the Organization Chart menu)?

I would like all of the pages in the automated org chart to use the save subordinate style. I found the property &ChildLayoutStyle but did not find how I could reference this in VBA

Thanks agai
 
A

Andy [MS]

Unfortunately, I don't believe that the Org Chart's layout can be changed
via automation.

--
Andy
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.


Russell said:
Andy,
Thank you for the info on the Save as Web API.

I had previously listed a second question: Is there a method in VBA which can be used to re-arrange the
subordinate boxes in an Org Chart (like the "Arrange Subordinates" option
under the Organization Chart menu)?

I would like all of the pages in the automated org chart to use the save
subordinate style. I found the property &ChildLayoutStyle but did not find
how I could reference this in VBA.
 
R

Russell

Andy,
Thanks again for your feedback. Is there a way to set the layout by modifying a Registry setting?
 
A

Andy [MS]

I don't believe so.

--
Andy
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.


Russell said:
Andy,
Thanks again for your feedback. Is there a way to set the layout by
modifying a Registry setting?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top