Did you use Visio 2007 data linking to connect the org chart shapes to the database? if so, you can set a parameter in Visio that will automatically refresh the drawing from the database at a time interval you define (note: the drawing must remain open for the automatic update to occur). This would take care of step 1 without requiring any programming -- just setting a Visio parameter.
As for step 2, republishing the web page, there's an example in the Visio software developer's kit of a macro that will save your drawing as a web page. You could either run the macro yourselft periodically, or you could, with a bit of extra work using a second SDK example, add the code to perform the save whenever certain events occur, e.g., when data is refreshed.
The Visio Developer Portal is here:
http://msdn.microsoft.com/
You'll find a link to the SDK in the lower right of this page.
Let me know if you'd like more information about this approach.
Main Topics
Browse All Topics





by: MikeOM_DBAPosted on 2008-05-06 at 08:23:58ID: 21508103
Although the update to ERP occurs at the database level, the Organization chart synchronization is driven by the Visio application.
You would need to somehow schedule a daily/weekly batch job to execute Visio with the appropiate command to synchronize the Org chart and deploy to Intranet.
Good luck!