WordsProcessing: RtfFormatProvider: Wrong indexing when export the list override index ("\ls")
According to the RTF specification: The valid values for the "\ls" index are from 1 to 2000.
They are currently exported from zero or "\ls0".
7 comments
ADMIN
Dimitar
Posted on:05 Apr 2021 10:13
Hello David,
I have logged this for investigation on your behalf. You can track its progress, subscribe to status changes, and add your comment to it here. I have updated your Telerik points as well.
Unfortunately due to the nature of the issue, I cannot suggest a workaround.
The way I can reproduce is. First the user enters some texts and makes it an enumeration:
Second, we write it with this code into a file, called asdf.rtf:
Finally we get this rtf:
Thanks a lot for Your Help on this one!
BR
David
ADMIN
Dimitar
Posted on:31 Mar 2021 11:09
Hi David,
I have tested this with a similar code and the list starts with \ls2 on my side. Can you send me the code that you are using to create the list? This way I will be able to reproduce the exact case. Here is the code I am testing with:
We have noticed one more similar thing when exproting from the Telerik.WinControls.UI.RadRichTextEditor. With this control the behavior is similar when we export lists and enumerations using the Telerik.WinForms.Documents.FormatProviders.Rtf.RtfFormatProvider:
The \ls is indexed with 3 instead of with 1. Maybe you can have a look at that too, because our legacy textsoftware (TxtTextControl) doesn't handle it properly.
I am not sure if this is within spec, but it causes problems.
Would be very kind again if you might help us out here.
BR
David Wieser
ADMIN
Dimitar
Posted on:29 Mar 2021 13:58
Hello David,
Yes, the fix will be available for WinForms as well. Please check your account tomorrow for the latest internal build for WinForms.
Let me know if I can assist you further.
Regards,
Dimitar
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
David
Posted on:29 Mar 2021 08:38
Thanks for the quick resolution Peshito and Telerik Team.
Will the solution be available for WinForms too? Because we work on Wiforms and you write WPF.
THX
David
ADMIN
Peshito
Posted on:29 Mar 2021 07:45
Hello,
This item will be available in R2 2021 Release.
It is also available with the following internal builds:
Telerik UI for WPF - LIB 2021.1.329 (29/3/2021)
Telerik UI for Xamarin - LIB 2021.1.329 (29/3/2021)
Regards,
Peshito Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.