Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I use the Microsoft Word object in ASP.NET?

    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?

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    Hi,

    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:
    http://www.codeproject.com/aspnet/wordapplication.asp

    Good luck;

  • #3
    Regular Coder
    Join Date
    Jun 2008
    Location
    SE Wisconsin, US
    Posts
    222
    Thanks
    1
    Thanked 20 Times in 20 Posts
    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.
    Milwaukee Web Designer and SEO Milwaukee Firm specializing in ASP.Net, C#, VB.Net, SQL Server and Access.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •