How to make Visio Export work on Microsoft Server 2008

by hayrettiny 1. August 2011 09:06

Normally Server side Automation of Office is not recommended.
Here is an article that explains why,
Considerations for server-side Automation of Office (http://support.microsoft.com/?id=257757)
However, let’s say you have to export Visio Documents using server side automation.
You should receive errors from below lines, while you are opening the template file. Server would not let you to open a Visio Application.
visApp.Documents.Open(Template.vst);
visApp.Documents.Add(Template.vst);
Here is the solution.
1. You have to have Visio 2010 installed to your 2008 Server.
2. You have to enable Desktop Experience.
3. You have to Disable UAC.
4. Start-Run-“Component Services”.
5. Expand Component Services.
6. Expand Computers-My Computer-DCOM Config. and find Microsoft Visio Drawing.
7. Right click on Microsoft Visio Drawing and go to properties.
8. Under “Identity” tab, select “This User” option. (This User should be IIS Manager.)
9. Click Ok and you are good to go.

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading