This is a migrated thread and some comments may be shown as answers.

RadRichTextEditor - Adding text changes RTF to unreadable

3 Answers 222 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 08 Mar 2017, 09:22 AM

I'm using a RadRichTextEditor for WinControls (2017.1.117.40) in my WinForms application and i want to use the RTF text later on in a Stimulsoft Report.

First i import an RTF (created by Winword) from my local machine, it is displayed fine in the TextEditor and in a report designed with Stimulsoft. After i edit the text and try to display it in the report again, the report can't render it anymore as RTF.

I've attached the original text and the changed text as texxtfiles and you can see that there have been put some more tags into the file than in the original.

I'm not using any special propertysettings for the texteditor as far as i know.

So i need the structure as in the Original text, can you help me to figure out what is going wrong here?

Original text:

{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1043\deflangfe1043{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Riched20 6.3.9600}{\*\mmathPr\mnaryLim0\mdispDef1\mwrapIndent1440 }\viewkind4\uc1 
\pard\nowidctlpar\cf1\b\f0\fs20 TESTTEKST\b0\par
}

Changed text after adding "test2" in Texteditor:

{\rtf\ansi\ansicpg1252\uc1\deff0\deflang1033{\fonttbl{\f0 Verdana;}{\f1 Arial;}}
{\colortbl\red0\green0\blue0 ;}
{\*\defchp\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone}
{\*\defpap\sl276\slmult1\ql\sa180\ltrpar}{\stylesheet{\s0\sqformat\spriority0\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone\sl276\slmult1\ql\sa180\ltrpar Normal;}{\*\ts2\tsrowd\spriority59\trbrdrt\brdrnone\trbrdrb\brdrnone\trbrdrl\brdrnone\trbrdrr\brdrnone\trbrdrh\brdrnone\trbrdrv\brdrnone\trgaph0\trpaddl75\trpaddr75\trpaddt0\trpaddb0\clpadft3\clpadt0\clpadfr3\clpadr0\clpadfl3\clpadl0\clpadfb3\clpadb0\tsvertalt\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone\sl276\slmult1\ql\sa180\ltrpar Table Normal;}}\nouicompat\viewkind4\paperw12240\paperh15840\margl1425\margr1425\margt1425\margb1425\deftab720\sectd\pgwsxn12240\pghsxn15840\marglsxn1425\margrsxn1425\margtsxn1425\margbsxn1425\headery720\footery720\pard\s0\sl240\slmult1\ql\ltrpar{\ltrch\f1\fs20\i0\b\strike0\cf0\ulc0\ulnone TESTTEKST test2}{\ltrch\f1\fs20\i0\b0\strike0\cf0\ulc0\ulnone\par}}

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 09 Mar 2017, 04:22 PM
Hi Eric,

Thank you for writing.

It appears that this question duplicates a ticket submitted by a colleague of yours. The issue is caused by a missing version of the exported RTF document. Generally, other software products handle such documents and display them correctly, some programs, however, cannot read them. The issue is logged on our feedback portal.

It can be worked around by adding a version and changing the \rtf tag to \rtf1.

I hope this information is useful.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Eric
Top achievements
Rank 1
answered on 10 Mar 2017, 07:41 AM

Hi Hristo,

Yes indeed, Frank send the request after we didn't get response on this post. Many thanks again!!

With kind regards

Eric

0
Hristo
Telerik team
answered on 10 Mar 2017, 08:55 AM
Hi Eric,

Tickets have a higher priority than forum threads so whenever you need a matter to be handled urgently please use the ticketing system. 

Let me know if you have other questions.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TextBox
Asked by
Eric
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Eric
Top achievements
Rank 1
Share this question
or