I’m trying to work with MS word files but when i write the code as below:
Document document = new Document("Sample.doc");
I get the following error:
Error: The type or namespace name 'Document' could not be found (are you missing a using directive or an assembly reference?)
Tell me which library should be included for this data object?
Include
Microsoft.Office.Interop.Wordas reference in your application and, in your class, write