Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What about <a href="http://www.fckeditor.net/" rel="nofollow noreferrer">FCKeditor</a>? It is not built in but it is one of the most capable editor.</p> <p>You can get HTML from fckeditor control instance's Value property:</p> <pre><code>string s = fckeditor1.Value </code></pre> <p>Now save this string to a file say, MyPage.html. Now create an instance of MS World application and open this html file (myPage.html) with that application instance. Once opened you can save this opened file as word document! But this requires that you have MS office installed on machine:</p> <pre><code>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(); </code></pre> <p>PS:- It has been long time worked with this please don't mind if you have to do bit of work before using this code and method.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload