创建一个程序来填充Word文档. [英] Creating a program that fills Word document.

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

问题描述

Helllo,
我正在寻找一种使程序将数据输入到Word文档文件中的方法.
让我解释更多...

我已经准备了一个程序界面,其中包含以下字段: 
丈夫姓名:
姓氏:
妻子姓名:
姓氏:
电话号码:
儿童人数:
生活区:

我为它们每个创建了一个文本框,并创建了一个用于输入信息的按钮.

现在,我不知道的是 如何对按钮进行编程以打开Word文档文件 ,并且 将这些已填写的信息输入表格 我最近准备的(一行7列) ...
每次我按下按钮时,都会创建一个新行,并在其中填充信息 .

甚至有可能吗?

谢谢大家:)

要了解我,请执行以下操作:http://prntscr.com/ecrf3q

Helllo,
I'am looking for a way to make my program enters data to the Word document file.
Let me explain more...

I've prepared a program interface, with these fields:  
Husband Name:
Last Name:
Wife Name:
Last Name: 
Phone Number: 
Number of Children's:
Living Area:

I've created a text box for each of them, and a Button to enter the information.

Now what i don't know how, is how to program the Button to Open a Word Document file, and enter these filled information to the Table which I've prepared recently(a row with 7 columns)...
and each time i press the button it create a new Row and fill it with the information.

is that even Possible?

Thank you all :)

To understand me: http://prntscr.com/ecrf3q

推荐答案

.一种是使用Word Automation.下面是一个示例的链接(包括单词表):

There are a couple of ways to do this. One would be to use Word Automation. Below is a link to an example (which includes a Word Table):

另一种方法是使用邮件合并:

Another method would be to use Mail Merge:


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

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