加载Word文件并添加数据C#webapp [英] Load Word file and add data C# webapp

查看:122
本文介绍了加载Word文件并添加数据C#webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我想问我如何加载word文件基本上这将是一个模板。



我有一些文本框和按钮。如果我单击文本框中的按钮值直接到模板。



你可以说我喜欢写一封信,但只有一些部分我需要改变一切。





有关于此的任何建议吗?



谢谢

解决方案

你可以通过将word模板转换为HTML来实现这一点,反之亦然,我我正在考虑写一篇文章,但我发现它已经存在了。



结账这个

Microsoft Interop API将.doc,.docx,.dot,.dotx和.xls,.xlsx,.rtf转换为HTML


您需要使用 MS Word 库来执行此操作。请点击以下链接:

如何:以编程方式将文本插入Word文档 [ ^ ]

C#:使用DocX以编程方式创建和处理Word文档 [ ^ ]

我如何...使用C#修改Word文档? [ ^ ]



- 艾美

Hallo,

I want to ask how i load a word file basically this will be a template.

and i have some textbox and button. if i click the button value in the textbox direct to the template.

you can say i like to write a letter but only some parts i need to change everything.


any suggestion about this?

Thank you

解决方案

you can do this by converting word template into HTML and vice verse, i was thinking to write an article over this but i found it is already there.

checkout this
Microsoft Interop API to convert the .doc, .docx, .dot, .dotx and .xls,.xlsx, .rtf to HTML


You need to use MS Word Libraries to do so. Follow the links below:
How to: Programmatically Insert Text into Word Documents[^]
C#: Create and Manipulate Word Documents Programmatically Using DocX[^]
How do I... Modify Word documents using C#?[^]

--Amy


这篇关于加载Word文件并添加数据C#webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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