I have a C# application where i want to implement a logic for a programm which will open the word document and go to a certain place in the page and create a Table and put values in that. Can any one tell me how to implement this. I am using Visual studio 2005
+1
A:
Look up "Word Automation".
For example, KB316384, which covers:
The sample code in this article demonstrates how to do the following:
- Insert paragraphs with text and formatting.
- Browse and modify various ranges within a document.
- Insert tables, format tables, and populate the tables with data.
- Add a chart.
Marc Gravell
2008-11-12 10:32:58
Thanks.But i am looking for a solution which use .NET Reference instead of COM reference.Searched a lot.But couldnt findout .Can any one ?
2008-11-12 12:34:32
A:
This should help as well.
http://www.codeproject.com/KB/cs/Word_Automation.aspx
kenny
2008-11-12 10:46:34
A:
If you don't want to use Word Automation, e.g. you don't have Word installed on the computer running your program, you should have a look at Aspose.Words.
The only problem is that it's not free.
A:
Word will quite happily open a file in HTML with the extension .Doc. You can have all the formatting you want by using an internal style sheet. A very similar question came up here:
Remou
2009-01-09 11:49:12