Posted 3 October 2023, 4:44 pm EST - Updated 3 October 2023, 5:02 pm EST
I am trying to install the C1.Win.editor beta and I get the following error.:
Solved by installing prerelease version
I used the olde C1Editor to perform conversions with the following code:
Public Class classRtfHtml
    Private editor As New C1.Win.Editor.C1Editor
    Public Function toRtf(xhtml As String) As String
        Dim result As String = Nothing
        editor.LoadXml(xhtml, New Uri("C:\\"))
        Using ms As New MemoryStream
            If editor.SaveRtf(ms) Then
                result = Encoding.Default.GetString(ms.GetBuffer(), 0, CInt(ms.Length))
            End If
        End Using
        Return result
    End Function
    Public Function toXhtml(rtf As String) As String
        Dim result As String = Nothing
        Using ms = New MemoryStream(Encoding.UTF8.GetBytes(rtf))
            editor.LoadRtf(ms, New Uri("C:\\"))
        End Using
        result = editor.SaveXml
        Return result
    End Function
End Class
Is there a way to do this with the new editor?
-Kingman

