Note that there are some explanatory texts on larger screens.

plurals
  1. POLoad data with rtf make exception with following data only
    text
    copied!<p>when using this code to load data in qpf</p> <pre><code>public static void LoadRTF(string rtf, RichTextBox richTextBox) { if (string.IsNullOrEmpty(rtf)) { throw new ArgumentNullException(); } TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); //Create a MemoryStream of the Rtf content using (MemoryStream rtfMemoryStream = new MemoryStream()) { using (StreamWriter rtfStreamWriter = new StreamWriter(rtfMemoryStream)) { rtfStreamWriter.Write(rtf); rtfStreamWriter.Flush(); rtfMemoryStream.Seek(0, SeekOrigin.Begin); //Load the MemoryStream into TextRange ranging from start to end of RichTextBox. try { textRange.Load(rtfMemoryStream, DataFormats.Rtf); } catch { Exception ex; } } } } </code></pre> <p>the application raise an exception called </p> <blockquote> <p>Unrecognized structure in data format 'Rich Text Format'.\r\nParameter name: stream</p> </blockquote> <p>the data is</p> <pre><code>&lt;span dir="LTR" style="font-size: 9pt; background: none repeat scroll 0% 0% transparent; font-family: &amp;quot;verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: #444444;"&gt;Abu Dhabi Retirement Pensions &amp;amp; Benefits Fund has announced that the Fund has fully enabled 37 electronic services provided via its online portal that was launched on June 2012. This is an indication of the Fund&amp;rsquo;s concern to convoy Abu Dhabi&amp;rsquo;s Government Vision and the Fund&amp;rsquo;s strategy. There are 17 services which are allocated for entities. 775 governmental, semi-governmental and private entities are using these services and 2716 transactions have been accomplished last July. 13 other electronic services were categorized as general services targeted the active members, pensioners, and entities in which these services were used 2056 times since they were launched.&amp;nbsp;&lt;/span&gt;&lt;span dir="LTR" style="font-size: 9pt; font-family: &amp;quot;verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: #444444;"&gt;&lt;br /&gt; &lt;span style="background: none repeat scroll 0% 0% transparent;"&gt;Moreover, there are seven electronic services presented to the partners from governmental and semi-governmental entities in order to ease the exchanging of information and transactions among the entities and the Fund and to support Abu Dhabi&amp;rsquo;s government strategy to develop services.&amp;nbsp;&lt;/span&gt;&lt;br /&gt; &lt;span style="background: none repeat scroll 0% 0% transparent;"&gt;12 electronic services are expected to be launched for pensioners and beneficiaries and active members in 2014 which will enhance the level of the provided services.&lt;/span&gt;&lt;/span&gt; </code></pre> <p>this is the rtf format what is the error {\rtf1\ansi\ansicpg1252\uc1\htmautsp\deff2{\fonttbl{\f0\fcharset0 Times New Roman;}{\f2\fcharset0 Segoe UI;}{\f3\fcharset0 verdana&quot;;}}{\colortbl\red0\green0\blue0;\red255\green255\blue255;\red68\green68\blue68;}\loch\hich\dbch\pard\plain\ltrpar\itap0{\lang1033\fs18\f2\cf0 \cf0\ql{\f2 {\loch\f3\cf2\ltrch Abu Dhabi Retirement Pensions &amp; Benefits Fund has announced that the Fund has fully enabled 37 electronic services provided via its online portal that was launched on June 2012. This is an indication of the Fund\rquote s concern to convoy Abu Dhabi\rquote s Government Vision and the Fund\rquote s strategy. There are 17 services which are allocated for entities. 775 governmental, semi-governmental and private entities are using these services and 2716 transactions have been accomplished last July. 13 other electronic services were categorized as general services targeted the active members, pensioners, and entities in which these services were used 2056 times since they were launched. }\line {\loch\f3\cf2\ltrch Moreover, there are seven electronic services presented to the partners from governmental and semi-governmental entities in order to ease the exchanging of information and transactions among the entities and the Fund and to support Abu Dhabi\rquote s government strategy to develop services. \line 12 electronic services are expected to be launched for pensioners and beneficiaries and active members in 2014 which will enhance the level of the provided services.}\li0\ri0\sa0\sb0\fi0\ql\par} } }</p>
 

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