简体   繁体   English

如何创建在线字处理器[使用.net在服务器中进行HTML / XML到.doc的转换]

[英]How to create a Online Word Processor also [ HTML/XML to .doc conversion in server using .net]

I'm interested in knowing to create a Online Word processor similar to Google Docs and MS Office web Apps. 我对创建类似于Google Docs和MS Office Web Apps的在线文字处理器感兴趣。 i want to do it using MicroSoft technologies and Tools only. 我想只使用MicroSoft技术和工具来做。 I'm a beginner in ASP.net and C#.net. 我是ASP.net和C#.net的初学者。 I've planned to do its front end using TinyMCE [ http://tinymce.moxiecode.com/tryit/full.php ]. 我打算用TinyMCE [ http://tinymce.moxiecode.com/tryit/full.php ]做它的前端。 but how to convert the data in the browser to .doc in the server? 但如何将浏览器中的数据转换为服务器中的.doc? how can i do the formatting of a .doc file in the server using .net? 如何使用.net格式化服务器中的.doc文件? what are the tools available in .net to work on such kind of projects? .net中有哪些工具可用于此类项目? Thanks in Advance. 提前致谢。

Use OpenXML to generate word docs. 使用OpenXML生成Word文档。 This is of course for Word 2007/2010, not 2003. PLenty of documentation on how to do it. 当然,这适用于Word 2007/2010,而不适用于2003。有关如何执行此操作的大量文档。 You can reverse a word doc by changing extension from .docx to .zip then extracting the files and viewing them in notepad. 您可以通过将扩展名从.docx更改为.zip然后提取文件并在记事本中查看它们来反转单词doc。

thinking about it more, you might want to create an XSLT to translate the html markup to OpenXML. 想一想,您可能想创建一个XSLT来将html标记转换为OpenXML。 But this is a lot of work (might already be available somewhere on the net) so you might try a 3rd party tool as suggested below. 但这是很多工作(可能已经在网上的某个地方可用),所以你可以尝试下面建议的第三方工具。

There are a variety of third-party libraries, such as Aspose, that can do this. 有各种各样的第三方库,比如Aspose,可以做到这一点。
I don't think you'll find any good free ones. 我认为您不会找到任何好的免费软件。

You can generate .docx (OpenXML) files using the OpenXML SDK . 您可以使用OpenXML SDK生成.docx (OpenXML)文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM