title: Unrecognized structure in data format 'Rich Text Format'
body: <p>I want to convert <code>RTF</code> to <code>HTML</code>. But I get an Error in the <code>TextRange.Load</code> Function. I have the following Code:</p>
  
  <pre><code>private static string ConvertRtfToXaml(string rtfText)
      {
          var richTextBox = new System.Windows.Controls.RichTextBox();
          if (string.IsNullOrEmpty(rtfText)) return "";
  
          var textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd);
  
          //Create a MemoryStream of the Rtf content
  
          using (var rtfMemoryStream = new MemoryStream())
          {
              using (var rtfStreamWriter = new StreamWriter(rtfMemoryStream))
              {
                  rtfStreamWriter.Write(rtfText);
                  rtfStreamWriter.Flush();
                  rtfMemoryStream.Seek(0, SeekOrigin.Begin);
  
                  //Load the MemoryStream into TextRange ranging from start to end of RichTextBox.
                  textRange.Load(rtfMemoryStream, System.Windows.Forms.DataFormats.Rtf);
              }
          }
  
          using (var rtfMemoryStream = new MemoryStream())
          {
  
              textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd);
              textRange.Save(rtfMemoryStream, System.Windows.DataFormats.Xaml);
              rtfMemoryStream.Seek(0, SeekOrigin.Begin);
              using (var rtfStreamReader = new StreamReader(rtfMemoryStream))
              {
                  return rtfStreamReader.ReadToEnd();
              }
          }
  
      }
  </code></pre>
  
  <p>The Function <code>textRange.Load(rtfMemoryStream, System.Windows.Forms.DataFormats.Rtf);</code> throws the following Error:</p>
  
  <blockquote>
    <p>Unrecognized structure in data format 'Rich Text Format'.
    Parameter name: stream</p>
  </blockquote>
  
  <p>My RTF string looks like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>{\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0Arial;}}\viewkind4\uc1\pard\fs20 Hallo\par
  \par
  Wir bitten um Auftragsbest\''e4tigung und Liefertermin\fs20\par
  }
  </code></pre>
  
  <p>The RTF string looks normal to me, where is the Parameter stream?</p>