Helpful Information
 
 
Category: .Net Development
Manipulating Microsoft Word from C#

hII have a project where in the generation of a contract is being done by the system.My problem is, how am i going to insert text in the word document, and how am I going to check the location where i insert theat text.
ANy help will be appreciated.Thank you!

First off you will need to have Word installed on the machine that that program will be running on.

you may want to check out this article from the MSDN http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp

but it only covers VB, this article is 100% in C# so it will be more help
http://www.codeproject.com/useritems/WordApplication.asp

i beleive both contain links to download the COM libraries

Originally posted by hsmith
http://www.codeproject.com/useritems/WordApplication.asp


this link is easier to read.

using the same method, you can also do things with excel

Anyone used Spire.Doc ? use it to insert text into word document is so easy, which can read, write and modify word with OLE WORD AUTOMATION.
Maybe help to you










privacy (GDPR)