在ASP.NET MVC3中使用C#填充单词模板 [英] Populate a word template using C# in ASP.NET MVC3

查看:58
本文介绍了在ASP.NET MVC3中使用C#填充单词模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了一些有关填充Word文档"的文章,但是我需要使用C#填充Word文档(Office 2007).例如,我想要一个带有标签[NAME]的Word文档,在C#中使用该标签来放入我的值,然后在ASP.NET MVC3控制器中完成所有这些操作.有什么主意吗?

I read it some post referring to Populate word documents, but I need to populate a word document (Office 2007) using C#. For example i want to have a word document with a label [NAME], use that label in C# to put my value, and do all this in a ASP.NET MVC3 controller. Any idea?

推荐答案

您可以使用 OpenXML SDK 来处理Word文档.这是不错的文章(实际上是3篇文章系列中的第3篇),并带有一些示例.

You could use the OpenXML SDK provided by Microsoft to manipulate Word documents. And here's a nice article (it's actually the third of a series of 3 articles) with a couple of examples.

这篇关于在ASP.NET MVC3中使用C#填充单词模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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