C# code for MS Word

Darshak Mistry 21 Reputation points

Requirement is to open stored Ms word document using client application through C# Class Library with Restricted commands of MS Word applicaton

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,738 questions
0 comments No comments
{count} votes

Accepted answer
  1. David 151 Reputation points

    Try Spire.Dco for .NET, which is a class library for reading and editing Word document on .NET platform. It provides a paid version as well as a commnunity version for developers to handle small documents without exceeding 500 paragraphs and 25 tables per file. The following code snippet shows you how to save Word content out in a txt file.

    //Create a Document object  
    Document document = new Document();  
    //Load a Word document  
    //Save to txt   
    document.SaveToFile("ReadWord.txt", FileFormat.Txt);  
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous

    QnA currently supports the products listed here (more to be added) Better to reach out to subject matter experts in dedicated forums over here.



    (please don't forget to mark helpful replies as answer)


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments