We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Render Rich text content to RichTextBoxAdv Control

Hi,

    I want to render rtf text content.I used the SfRichTextBoxAdv control for rendering rtf content.I followed the documentation in which you specify the rtf files can be loaded and can be viewed in xaml.
I try like this

 StorageFolder folder = ApplicationData.Current.LocalFolder;
  StorageFile storageFile = await folder.GetFileAsync("sample.rtf");
   var randomAccessStream = await storageFile.OpenReadAsync();
   Stream stream = randomAccessStream.AsStreamForRead();
    richText.LoadAsync(stream,FormatType.Rtf);

For Loading rtf files ,I tried remaining three combinations as below

richText.Load(stream,FormatType.Rtf);
richText.LoadAsync(storageFile);
richText.Load(storageFile);

My .rtf file contains  "Write names of x & y.½"

When I load this file to richtextboxadv control ,it shows same content

but i want to display like this "Write names of x&y 1/2;"

i want final output like above


Please send me reply soon.I need this urgently


1 Reply

AP Arumuga Perumal S Syncfusion Team June 11, 2014 01:00 PM UTC

Hi Yas,

Thank you for using Syncfusion products.

On analysing the given input text, we found that it contains a special character ‘½’. Our SfRichTextBoxAdv control renders content as it if you view the document in MS Word. In order to display the content as you mentioned, you have to change the content in input document. For further analysis, kindly provide us your input document so that we can investigate on it and provide you with proper solution.

Please let us know if you have any other questions.

Regards,
Arumuga Perumal S.


Loader.
Live Chat Icon For mobile
Up arrow icon