Vuk
Vuk

Reputation: 33

Reading and modifying Microsoft Word document using C#

I'm new to C# and I need a little help. I have to load Microsoft word files in richTextBox, modify text, and save that text in some of Microsoft Word formats. I would appreciate if you could point me to libraries and examples that I should use to achieve this task.

Upvotes: 3

Views: 2000

Answers (2)

Nate
Nate

Reputation: 5407

If you are using a newer version of MS Office, you should look into OpenXML SDK. Older versions of Word will require Interop directly to Word.

The benefit to OpneXML SDK is your application will not use Office directly. You won't need to have Office installed on every machine your app runs. The downside (depending on how you look at it) is you'll only be able to save the newer OpenXML format (.docx).

Upvotes: 2

irritate
irritate

Reputation: 7460

Look into Microsoft.Office.Interop.Word namespace. It should have most of what you need. http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word(v=office.11).aspx

Upvotes: 3

Related Questions