Click here to Skip to main content
15,077,494 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more: , +
Hi,

I'm trying to insert data rows from a query in the MS Word 2007.

I could be able create an Add-in using Visual studio 2008 and ribbon technology and i could be able to get the query results from database.
But i'm stuck at showing the results on word.

I'm trying show a table filled with Dataset from the query.

I'm using this code. please look into this

Globals.ThisAddin.Application.Selections.HTMLDivisions.Add(ref ods);

giving error.

Can any one suggest me how to insert datatable into word using Addin with ribbon combination?

Thanks,
Srinivas
Posted
Updated 23-Feb-11 23:26pm
v4

1 solution

Hope this[^] might help you.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900