opkfaces.blogg.se

How to insert a table in word 2010
How to insert a table in word 2010













how to insert a table in word 2010

" \\endofdoc" /* \endofdoc is a predefined bookmark */ // Start Word and create a new document. Import Word namespace and create Word object.Now we are ready to code, first we need to create a new Word document using C#.Now in reference folder of solution explorer, you will see ' ' library added. Select Word com library (If you have Word 2007 installed, you will see 12.0 object library, if you have Word 2010 installed, you will see 14.0 object library and for Word 2013 you will see 16.0 object library).

how to insert a table in word 2010

Now just right click on solution explorer, click on Add reference and select COM tab.Create a simple Windows/web/WPF application (You may use console application or class library too, here I have used Windows application in C# with Visual Studio 2010 and Microsoft Word 2007).Here are the code steps we follow to get to our destination: Our Aim: Create a Word file programmatically and create a table in it In such cases, we need to create and write Word file programmatically and to accomplish the task COM winword interop library will play a role for you. Many times in real world scenario, we need to create our reports in Word file, need to export ' things' to Word file.















How to insert a table in word 2010