如何使用C#将Windows Form数据保存在Word文档中? [英] How to save the Windows Form data in a Word Document using C#?

查看:420
本文介绍了如何使用C#将Windows Form数据保存在Word文档中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是Windows应用程序的新手.
我有一个Windows窗体.该窗体具有一些控件,其中之一是保存"按钮.如何在保存"按钮上单击将表单数据保存到Microsoft Word文档中?
请给我建议一些代码.

Hi,
I am new to Windows applications.
I have one Windows Form. The form has some controls, one of which is the ''Save'' button. How to save the form data into a Microsoft Word Document on button ''Save'' click?
Please suggest me some code.

推荐答案

jyothisai15写道:
jyothisai15 wrote:

我是新来的WINDOWS APP

I AM NEW TO WINDOWS APP





jyothisai15写道:
jyothisai15 wrote:

这是我的任务.



如果您是编程的新手,那么您如何拥有一个任务"呢?

您的大写锁定键被卡住了. C#区分大小写,这会给您带来问题.

您如何期望将表单"保存到Word中?您要截取表单的屏幕截图吗?还是要将文本数据从表单保存到Word?

如果您想学习编程,则应该购买一些书籍,并学习使用Google. 此处 [ ^ ]是其工作方式的一个示例.如果您花时间尝试做某事,并有一个特定的问题,这些论坛将是最好的.



If you''re so new to programming, how can you have a ''task'' ?

Your caps lock key is stuck. C# is case sensitive, this is going to give you issues.

How do you expect a ''form'' to be saved into Word ? Do you want to take a screenshot of the form ? Or do you want to save text data from the form to Word ?

If you want to learn programming, you should buy some books and also learn to use Google. Here[^] is an example of how it works. These forums work best if you''ve taken the time to try to do something, and have a specific question.


这篇关于如何使用C#将Windows Form数据保存在Word文档中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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