title: Read word document in ASP.NET and replace text (Office 2003/2007)
body: <p>I'm using VS 2005, asp.net 2.0.</p>
  
  <p>I need to read a word document (.doc) in asp.net, make some replaces and then generate another word document.</p>
  
  <p>So far OK. I've done it in a machine that have the Office 2003 installed, so in VS 2005 I've added a reference to the "<strong>Microsoft Word 11.0 Object Library</strong>". Everything worked perfectly. Code to open/save the word document: <a href="http://www.dnzone.com/go?1387" rel="nofollow noreferrer">http://www.dnzone.com/go?1387</a></p>
  
  <p>Question 1: I need to open the same project in a machine that has Office 2007 installed and make it run. When I do it, it doesn't recognizes the references.. I only have the possibility to add reference to the "<strong>Microsoft Word 12.0 Object Library</strong>". How can I make it work smoothly in both machines with the less effort possible? Is there a way to do so?</p>
  
  <p>Question 2: Will this application work fine when I deploy it to a web server? Do I have to register some dll or component in the server or do anything else in order to this office integration to work?</p>