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

12-02-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?

12-07-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;

01-27-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.