将数据填充到.doc文件 [英] Fill data to .doc file

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

问题描述

我想将应用程序中的数据(从数据库中获取)填充到已被选中的.doc文件中的字段中.
这意味着我想更改报告的灵活性.
请帮我!

谢谢大家!
我将数据加载到具有以下列的数据表中:ID,EmpName,DayOfBirth,Sex,Note.一个.doc文件,其数据表中的字段相同.我想将datable中的数据填充到.doc文件中.
P/S:
1.如果数据表有n行,那么.doc文件将有n页.
2.如果我想在.doc文件的3行中填写注释"字段,该怎么办?这意味着数据不能溢出3行.

I want to fill data from application (get from database) to fields in .doc file which i was remarked.
That mean i want to change report flexibility.
Pls help me!

Thanks all!
I load data into datatable with columns: ID, EmpName, DayOfBirth, Sex, Note. A .doc file designed with fields same in datatable. I want to fill data from datable into .doc file.
P/S:
1. If datatable have n rows so the .doc file will have n pages.
2. If i want to fill the Note field into 3 lines in .doc file, what i should do? That mean the data cannot overflow 3 lines.

推荐答案

我推荐的最好方法是使用WOrd Interopt进行导出.几乎绝对不是您想要的答案,因为它将起作用.
The best I can recommend is that you export using the WOrd Interopt. This is almost definatly not the answer you want becuase it will be some work.


浏览下面的链接,这可能对您有所帮助

此处 [
Go through the below link, this may helps you

Here[^]

Thanks
--RA


您始终可以将数据输出为CSV,并将Word文档设置为邮件合并.
You can always output the data in a CSV, and set your word document up as a mail merge.


这篇关于将数据填充到.doc文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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