有什么方法可以在Word文档中绑定sql数据? [英] Is there any way to Bind sql Data in word document?

查看:100
本文介绍了有什么方法可以在Word文档中绑定sql数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将sql数据库中的某些信息绑定到word文档,类似于Mail Merge,但是在Mail Merge中,我们只能绑定一行信息.在我的应用程序中,SQL将为一个ID显示多行.有什么解决办法吗?

例如:

姓名:约翰

地区
Dist1
Dist2
Dist3
Dist4

位置:伦敦

I want to bind some information from sql Database to the word document, something like Mail Merge, but in Mail Merge we can bind only one row of information. in my application the sql will display multiple rows for one id. Is there any solution for this?

Eg:

Name: John

Districts
Dist1
Dist2
Dist3
Dist4

Location: London

推荐答案

浏览下面的链接,它将帮助您解决问题.

http://www.simple-talk.com/sql/t-sql-programming/writing-to-word-from-sql-server
Go through the below given link it will help you to solve your issue.

http://www.simple-talk.com/sql/t-sql-programming/writing-to-word-from-sql-server


这篇关于有什么方法可以在Word文档中绑定sql数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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