2
Answers

How to create table in word document using Interop dll

Rakesh Kalluri

Rakesh Kalluri

12y
2.1k
1
Hello every one,

how to create a table in word document using interop dll


=====================================================
                                                 text
=====================================================


=======================================================
Name             college                                        roolNo
========================================================
rakesh            cbit                                             120
raki                jntu                                           140
=======================================================





=======================================================
                                         text
========================================================


in my document i adding the some text top of the document in midlle i want create a table in by using bookmaks names like "'\\Start of doc " and "\\endofdoc" and then after i want add some text



this is my urgent requierment
Answers (2)
0
Hello,
I don't recommend you to use Interop dll to work with Word documents, especially in Asp.NET projects. It is very slow, it requires the installation of additional packages on client machine and uses a lot of memory. If you work with the .docx format only, you may want to look at free library Open XML:

http://somecodesnippets.blogspot.ru/2012/05/how-to-create-word-document-with-c.html
http://msdn.microsoft.com/en-us/library/office/cc850841.aspx

Or you can use this C# Word component. It supports both .doc and .docx formats, but it is not free.