View Full Version : How do I use the Microsoft Word object in ASP.NET?

Dec 2nd, 2005, 07:48 PM
I have used VB.NET to create a Microsoft Word object and write to a document in the past. Now I am trying to do this from an ASP.NET project. Everything compiles correctly, but when I view the page in a web browser I get an error saying that the Word object could not be created. Does anyone know of a setting that must be changed to make this work in ASP rather than VB?

Dec 7th, 2005, 03:57 AM

Without seeing the code it's hard to say. Post it up and the error message and we should be able to help you along. Theres a pretty good article on creating word documents in asp.net on codeproject.com:

Good luck;

Jan 27th, 2009, 05:04 AM
One problem I have run into is security issues when trying to programmatically access Office documents through shared hosting. In general, I think shared hosting security prohibits this kind of activity.