user1430114
user1430114

Reputation: 31

Read/Write/Save MS Word Document in c#

I have to open a word document using c# and do some changes in that document and save it again. Document will have lot of tables and styling. For example I have to process that document page by page. I have to change all italics to normal and all caps to small letters and save to that document only the changes without affecting the styling and alignment or format of the document.

Is that possible in c# .net? Please let me know it there any tutorial available based on my requirement. Basically I am a Java developer recently moved to c#. I have googled for past 2 days, I didn't get any proper data.

Upvotes: 1

Views: 3068

Answers (1)

Remy
Remy

Reputation: 12693

Personally, I use Aspose.NET. But that component is not free. If you need something free, I can also recommend the Microsoft Open XML Library:
http://blogs.msdn.com/b/ericwhite/archive/2008/04/22/using-the-open-xml-sdk.aspx

I would not use Office Interop as Jim suggested. It's not very stable for server.

Upvotes: 2

Related Questions