Re: LoadRTF can't work when retrieve RTF data from database.

  •  09-10-2009, 10:52 PM

    Re: LoadRTF can't work when retrieve RTF data from database.

    Hi hery2002,
     
    LoadRTF methods need to provide the path of the file which you want to load(file not content).
     
    Please change to
     
     if (null != ds) Editor2.Text=ds.Tables[0].Rows[0]["COLUMN"].ToString();
     
    -------------------------------------------------
    Editor.LoadRTF Method 
     
    Loads the contents of a RTF file into the CuteEditor control.
     
    [Visual Basic]
    Public Sub LoadRTF( _
       ByVal _filename As String _
    )
    [C#]
    public void LoadRTF(
       string _filename
    );

    Parameters

    _filename The text file to load into CuteEditor

    Example

     
        editor1.LoadRTF("{\rtf1\........");
        
        editor1.LoadRTF("~/doc/mtRTF.RTF");
    
    Regards,
     
    Ken
View Complete Thread