使用功能区和单词加载项组合将SQL查询结果插入MS Word [英] Insert SQL query results into MS Word using a ribbon and word addin combination

查看:98
本文介绍了使用功能区和单词加载项组合将SQL查询结果插入MS Word的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试从MS Word 2007中的查询插入数据行.

我可以使用Visual Studio 2008和功能区技术创建一个加载项,并且可以从数据库中获取查询结果.
但是我坚持在单词上显示结果.

我正在尝试显示一个填充有查询数据集的表.

我正在使用此代码.请研究这个

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

出现错误.

有人可以建议我如何使用功能区组合的Addin将数据表插入Word吗?

谢谢,
Srinivas

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

推荐答案

希望 ^ ]可能会为您提供帮助.
Hope this[^] might help you.


这篇关于使用功能区和单词加载项组合将SQL查询结果插入MS Word的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆