Another RTF to HTML question.

Last post 08-28-2007, 2:26 PM by EricLoos. 2 replies.
Sort Posts: Previous Next
  •  08-20-2007, 7:31 PM 32618

    Another RTF to HTML question.

    The LoadRTF( ) method works fine with the sample RTF in your docs. It doesn't work with some RTF from a Client-Server App saved to a database. No error or exception. Contents of Editor1 are blank after load. The RTF in question looks like this:
     
    {\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}{\f1\fnil\fcharset0 Arial;}{\f2\fnil\fcharset0 Times New Roman;}{\f3\fnil\fcharset2 WingDings;}{\f4\fnil\fcharset2 WingDings;}{\f5\fnil\fcharset2 WingDings;}{\f6\fnil\fcharset2 WingDings;}{\f7\fnil\fcharset2 WingDings;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;}\wpprheadfoot1\paperw12240\paperh15840\margl1880\margr1880\margt1440\margb1440\headery720\footery720{\*\listtable{\list\listtemplateid19690212{\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc1{\leveltext\'02\'00.;}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc3{\leveltext\'02\'01.;}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0{\leveltext\'02\'02.;}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc4{\leveltext\'02\'03);}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc2{\leveltext\'02\'04);}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc4{\leveltext\'02\'05);}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0{\leveltext\'02\'06);}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0{\leveltext\'02\'07);}{\levelnumbers\'01;}}
    {\listlevel\leveljc0\levelfollow0\levelstartat1\levelspace0\levelindent360\levelnfc0{\leveltext\'02\'08);}{\levelnumbers\'01;}}
    \listid1194737}}{\*\listoverridetable{\listoverride\listid1194737\listoverridecount0\ls1}}\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f2\fs22\cf0 10 days and 6 hours.\par
    \ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f2\fs22\cf0 \par
    \ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f2\fs22\cf0 Now is the time for all good \plain\f2\fs22\cf0\b programmers\plain\f2\fs22\cf0  to \plain\f2\fs22\cf0\ul come\plain\f2\fs22\cf0  to the aid of their language.}}
    }
     
    Thanks in advance.
    Filed under:
  •  08-27-2007, 4:26 PM 32959 in reply to 32618

    Re: Another RTF to HTML question.

    EricLoos,
     
    Which version of Cute Editor are you using?
     
    Please check this thread:
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-28-2007, 2:26 PM 33004 in reply to 32959

    Re: Another RTF to HTML question.

    We are using v6.0.0.0.
     
    I looked at the resulting HTML in Editor1.Text after Editor1.LoadRTF() and it is :
     
    < html> < body> < /body> < /html>
     
    (extra spaces added)
View as RSS news feed in XML