Opening Microsoft Word files in c# .net

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-05-31T15:39:53Z Indexed on 2010/05/31 15:43 UTC
Read the original article Hit count: 419

Filed under:
|
|

Hi, I'm trying to use the simple code here: http://www.c-sharpcorner.com/UploadFile/Globalking/fileAccessingusingcsharp02242006050207AM/fileAccessingusingcsharp.aspx

But I get the following error message when trying to declare a "Word" object. Error 1 The type or namespace name 'Word' could not be found (are you missing a using directive or an assembly reference?) C:\Users..\Documents\Visual Studio 2010\WebSites\Copying1_1\Default.aspx.cs 89 13 C:...\Copying1_1\

Any suggestions? N.b. I went to "add reference" and added "Microsoft Word 12 library", but it doesn't appear in the solution explorer. I also added:"using Microsoft.Office;"

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET