asp.net数据库表到word [英] asp.net database table to word

查看:73
本文介绍了asp.net数据库表到word的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我给Word文档写了一封信,现在我想替换信件中的人名,而名字列表在我的asp项目中的sqldatabase中,我如何加入他们?
例如我在单词中有这封信:

//------------------
尊敬的 usernamae
信件正文
//------------------
现在我要替换sqldatabase中的用户名并自动准备好字母
对于wxample,如果我有3个用户名,它会为我写3个字母,再见相同的身体
我的用户名{mohammad-reza-ali}
参见:
亲爱的穆罕默德
信件正文
------------
亲爱的阿里
信件正文
------------
尊敬的reza
信件正文
------------

i am written a letter to a word document and now i want replace the name of people in the letter and the list of name is in the sqldatabase in my asp project,how can i join them?
for Example i have this letter in the word:

//------------------
Dear usernamae
letter body
//------------------
now i want replace the username from sqldatabase and ready the letter automatically
for wxample if i have 3 user name it make 3 letter for me bye equal body
my username{mohammad-reza-ali}
see:
Dear mohammad
letter body
------------
Dear ali
letter body
------------
Dear reza
letter body
------------

推荐答案

所需的功能是所谓的"mailmerge".尝试使用该搜索进行搜索,您将获得所需的所有信息.

祝你好运!
The functionality you want is a so called "mailmerge". Try a search using that and you will get all the information you''ll need.

Good luck!


这篇关于asp.net数据库表到word的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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