views:

3722

answers:

6

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
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 ?
A: 

This should help as well.
http://www.codeproject.com/KB/cs/Word_Automation.aspx

kenny
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: 

i am looking to format my dynamic html asp.net table. can some one give me url or expalin, how to formate dynamic tables in asp.net

thanks

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:

Export to Word Document in C#

Remou
A: 

http://aspalliance.com/794

Priyanka