如何从Win Form Content创建Word文档 [英] How to create Word document from Win Form Content

查看:130
本文介绍了如何从Win Form Content创建Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI



我在Win Form上有一些理论内容。当我复制该内容并将其粘贴到word文件时



它复制但是Alignment被打扰了



那么如何将WIN表格内容直接转换成word文件,这样我就可以在表单上得到它?



请告诉我这个。

HI

I have Some Theory Content On Win Form .When I Copy That Content and paste it to word file

It copied but Alignment got disturbed

So how to convert that WIN form content directly into word file so that I will get it as it on form?

Please tell me this.

推荐答案

请看我对这个问题的评论:这不是简单。我知道你不想使用图形,但想要一个可以复制,操作等文本的文档。你只能以某种近似的方式模仿表单布局。



想法是这样的:你可以用复杂的表模仿布局(复杂我的意思是使用合并的单元格)。



另一个想法是放弃表达形式的想法。表单是一回事,它代表的数据是另一个,保存的文档是不同的。也许你需要从数据到文档,跳过表单。以独立于表单的方式开发一些数据文档表示。想想看,这不是最糟糕的主意。



-SA
Please see my comment to the question: this is not easy. I understand you don''t want to use graphics but want a document with text which can be copied, manipulated, etc. You can only imitate form layout, in some approximate ways.

On idea is this: you can imitate layout with a complex table (by "complex" I mean with the use of merged cells).

Another idea is to give up from the idea to represent a form. Form is one thing, data it represent is another one, the saved document is something different. Perhaps you need to go from data to document, skipping the form. Develop some document representation of data in a way independent from the form. Think about it, this is not the worst idea.

—SA


这篇关于如何从Win Form Content创建Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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