从ASP.NET以编程方式生成可编辑的Word文档? [英] Programmatically generating editable Word docs from ASP.NET?

查看:106
本文介绍了从ASP.NET以编程方式生成可编辑的Word文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目的是生成可以在事实之后但在发送给客户之前手动在Word中进行编辑的投标文档.

The purpose is to generate proposal documents that can manually be edited in Word after the fact, but before sending them out to the customers.

许多提案内容将从现有的HTML网站内容(支持CMS)以及某些情况下的自定义(非HTML)注入中提取.当然,条件逻辑可以进入服务器端ASP.NET来适当地更改内容.

Much proposal content would be drawn from existing HTML website content (backing CMS) and also some custom (non-HTML) injection for certain scenarios. Of course the conditional logic could go into server-side ASP.NET to vary the content appropriately.

如果对Word API的原始操作很繁琐,那么我愿意接受第三方工具.实际上,一个好的第三方工具可能就是答案.

I'm open to 3rd-party tools if raw manipulation of the Word API is arduous. In fact a good 3rd party tool might be the answer.

推荐答案

对.Net使用Aspose Words组件.

Use the Aspose Words component for .Net.

Aspose Words Component Link

该组件本身可以理解Microsoft Word文件格式,而无需在您的应用程序环境中安装任何Microsoft Office产品.然后,您可以从现有的Word模板开始,或以编程方式从头开始构建整个Microsoft Word文档.然后,Word对象模型允许您导出到doc/docx等文件并另存为本机Word文件到任何需要的地方.

The component natively understands the Microsoft Word file format without having to install any Microsoft Office products on your application environment. You can then start from an existing word template or programatically build up an entire Microsoft Word document from scratch. The Word object model then allows you to export to doc / docx etc and save as a native Word file to wherever you required.

他们的网站上设置了很多演示.

They have plenty of demos set up on their website.

这篇关于从ASP.NET以编程方式生成可编辑的Word文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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