Copy excel table in word document

Posted by Ashokn under C# on 7/10/2011 | Points: 10 | Views : 7649 | Status : [Member] | Replies : 3
Hi,


I want to read data from an Excel sheet(.xls) to a word document(.doc).I have a Table in excel (say 2 columns and 3 rows).I want to read this table from excel file and write it to a word document.Just like copy the table from excel and paste it in word doc.I want to this progarmatically(using C#) either making use of

Microsoft.Office.Interop.WORD
or
using OpenXML

Thanks,
Ashok




Responses

Posted by: Lakn2 on: 7/12/2011 [Member] Starter | Points: 25

Up
0
Down
Refer this

http://www.meadinkent.co.uk/excel-to-word.htm

Thanks&Regards
LakshmiNarayana Nalluri.

Ashokn, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ashokn on: 7/19/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
Above code satisfies the purpose of copy data from Excel to Word but pls giv me solution using OpenXML SDK API.

Thanks in advance...

Ashokn, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response