ASP.Net富文本编辑控件

ASP.Net富文本编辑控件,asp.net,ms-word,richtextbox,Asp.net,Ms Word,Richtextbox,我正在寻找可以在ASP.Net中使用的控件,提供丰富的文本编辑功能,如Office Live,可以在线工作的谷歌文档。另一个需要的功能是下载到MicrosoftWord格式 是否有任何推荐的ASP.Net内置控件或示例/文档 提前感谢,, George在Ajax控件工具包中如何操作。然后,您可以获取内容并将其保存为wod文档。这有两个链接,其中详细介绍了如何将HTML控制到word。关于Ajax控制工具包的内容。然后,您可以获取内容并将其保存为wod文档。这有两个链接,详细介绍了如何将HTML控

我正在寻找可以在ASP.Net中使用的控件,提供丰富的文本编辑功能,如Office Live,可以在线工作的谷歌文档。另一个需要的功能是下载到MicrosoftWord格式

是否有任何推荐的ASP.Net内置控件或示例/文档

提前感谢,,
George

在Ajax控件工具包中如何操作。然后,您可以获取内容并将其保存为wod文档。这有两个链接,其中详细介绍了如何将HTML控制到word。

关于Ajax控制工具包的内容。然后,您可以获取内容并将其保存为wod文档。这有两个链接,详细介绍了如何将HTML控制到word。

如何?它不是内置的,但它是最有能力的编辑器之一

您可以从fckeditor控件实例的Value属性获取HTML:

string s = fckeditor1.Value
现在将这个字符串保存到一个文件,比如MyPage.html。现在创建一个MS World应用程序实例,并用该应用程序实例打开此html文件(myPage.html)。 打开后,您可以将此打开的文件另存为word文档!但这需要在计算机上安装MS office:

private Word.ApplicationClass wordApp = new Word.ApplicationClass();

object fileName = ""; //Path to HTML File
object newFile = ""; //Path where you want to save doc file

bject missing = System.Reflection.Missing.Value;

Word.Document htmlDoc = WordApp.Documents.Open(ref fileName, ref missing, 
     ref readOnly, ref missing, ref missing, ref missing, ref missing, 
     ref missing, ref missing, ref missing, ref missing, ref isVisible);

object docFormat = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatDocument;
   //Please check if this is correct value from enumeration

htmlDoc.SaveAs(ref newFile,ref docFormat, ref missing,ref missing,ref missing, 
     ref missing,ref missing,ref missing, ref missing,ref missing,ref missing, 
     ref missing,ref missing,ref missing, ref missing,ref missing);

htmlDoc.Close();
wordApp.Quit();
PS:-使用此代码和方法已经很长时间了,请不要介意在使用此代码和方法之前是否需要做一些工作。

如何?它不是内置的,但它是最有能力的编辑器之一

您可以从fckeditor控件实例的Value属性获取HTML:

string s = fckeditor1.Value
现在将这个字符串保存到一个文件,比如MyPage.html。现在创建一个MS World应用程序实例,并用该应用程序实例打开此html文件(myPage.html)。 打开后,您可以将此打开的文件另存为word文档!但这需要在计算机上安装MS office:

private Word.ApplicationClass wordApp = new Word.ApplicationClass();

object fileName = ""; //Path to HTML File
object newFile = ""; //Path where you want to save doc file

bject missing = System.Reflection.Missing.Value;

Word.Document htmlDoc = WordApp.Documents.Open(ref fileName, ref missing, 
     ref readOnly, ref missing, ref missing, ref missing, ref missing, 
     ref missing, ref missing, ref missing, ref missing, ref isVisible);

object docFormat = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatDocument;
   //Please check if this is correct value from enumeration

htmlDoc.SaveAs(ref newFile,ref docFormat, ref missing,ref missing,ref missing, 
     ref missing,ref missing,ref missing, ref missing,ref missing,ref missing, 
     ref missing,ref missing,ref missing, ref missing,ref missing);

htmlDoc.Close();
wordApp.Quit();


PS:-在使用此代码和方法之前,请不要介意您是否需要做一些工作。

“然后您可以获取内容并将其保存为wod文档。”--任何参考示例或文档?此线程中有许多链接,您是指以下两个链接吗?而HTMLEditor.content将为您提供HTML内容。使用以上链接中的控件将其另存为doc(x)。您推荐的控件不是免费的。我更喜欢使用开源或.Net内置控件,即使功能有限。任何评论或建议?对于html到word,此项目可能与“您可以获取内容并将其另存为wod文档”相关。是否有参考样本或文档?此线程中有许多链接,您是指以下两个链接吗?而HTMLEditor.content将为您提供HTML内容。使用以上链接中的控件将其另存为doc(x)。您推荐的控件不是免费的。我更喜欢使用开源或.Net内置控件,即使功能有限。任何评论或建议?对于html到word,这个项目可能是相关的看起来只有编辑功能,没有导出到MSWord功能?我不认为有任何免费或开源产品可用于此,直到你想用OpenXML弄脏你的手。我曾经做过一次从MS Word到HTML的转换。我打开word文档(用于Office的互操作程序集)并保存为html。您可以打开html文档并将其另存为word。尝试一下,直到有更优雅的东西可用。我添加了一些代码,希望这对你有用。请添加对Microsoft世界对象库的引用!当然,当按钮上有回发时,单击可以从fckeditor获取文本并保存它,然后执行其他操作!是的,点击按钮。点击按钮后,页面从浏览器返回到服务器。看起来只有编辑功能,没有导出到MSWord功能?我认为在你想用OpenXML弄脏你的手之前,没有任何免费或开源的产品可用于此。我曾经做过一次从MS Word到HTML的转换。我打开word文档(用于Office的互操作程序集)并保存为html。您可以打开html文档并将其另存为word。尝试一下,直到有更优雅的东西可用。我添加了一些代码,希望这对你有用。请添加对Microsoft世界对象库的引用!当然,当按钮上有回发时,单击可以从fckeditor获取文本并保存它,然后执行其他操作!是的,点击按钮。单击按钮后,页面将从浏览器发回服务器。