填充Asp.Net中的Word文档 [英] Populate a word document from Asp.Net

查看:91
本文介绍了填充Asp.Net中的Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



任何人都可以指导我如何使用从DB中检索到的值弹出word文档表格吗?



谢谢。

Ann

解决方案

在Word 2010中,单击邮件,然后单击选择收件人和使用现有列表。在对话框中,您可以访问新源...这将允许您查询SQL Server或其他源,或者您也可以在对话框中浏览数据查询文件或包含列表的Excel文件。



在此之后,您可以单击插入合并域将字段插入到文档中。


这是一个很好的例子 [ ^ ]

Hi,
Can anyone please guide me on how to popluate a word document form with values retrieved from DB?

Thanks.
Ann

解决方案

In Word 2010 you click on Mailings, then on Select Recipients and Use Existing List. In the dialog you clieck on New Source... This will allow you to query SQL Server or other sources or you could also in the dialog browse for a Data Query file or an Excel file containing your list.

After this, you can click on Insert Merge Field to insert your fields into the document.


This is a good example[^]


这篇关于填充Asp.Net中的Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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