Hi support,
We have a problem when we copy a text from MS word to RitchTextBox.
If the text copied uses an style that the namecontains tilde, then style name on the ritchtextbox is broken with strange characters.
All works well with this strange characters, but if you export to html and then import to ritchtextbox, the style is lost ...
This is a big problem because in spanish, many styles have tildes. When our user copy content from word they have problem with html format export / import.
I Attach a MS Word docx with a style with tildes:
Steps to reproduce it:
1- Open MS Word attached.
2- Copy the content.
3- Open a ritchTextBox Editor
4- Paste the content.
5- Export to html
6- Import the html.
You can see now, that the style are lost, and the name of the style contains strange characters.
Similar issue its happen when open a Word Docx with styles with tildes from ritchTextBox, not include strange characters but the style is lost.
Thanks for you support,
When "rFonts" is set in docDefaults:
<w:styles>
<w:docDefaults>
<w:rPrDefault>
<w:rPr>
<w:rFonts w:ascii="Verdana" w:eastAsia="Times New Roman" w:hAnsi="Verdana" w:cs="Verdana"/>
...
</w:rPr>
</w:rPrDefault>
and partially in the local run properties:
<w:r>
<w:rPr>
<w:rFonts w:cs="Times New Roman"/>
...
</w:rPr>
<w:t>Text</w:t>
</w:r>
A wrong font is applied.
Expected: Verdana
Actual: Times New Roman
Hi Guys,
Our application works with a document storage and we use RadRichTextBox to allow users edit and view the documents. Unfortunately, many documents cannot be opened due to the following exception we get:
Unable to cast object of type 'Telerik.Windows.Documents.Model.FieldRangeStart' to type 'Telerik.Windows.Documents.Model.AnnotationRangeEnd
As result we receive complains from our users. Could you please facilitate with solving it?
I have attached a simple test application with the problematic document as well the stacktrace.
Best regards,
Yaroslav
Tap and Hold gesture does not work as expected. The feature will be available in our official release 2015 Q2 .
The fix is available in our latest LIB release (v. 2015.01.0413).
When ignoring incorrect words through the Spelling dialog and you reach the last word in the document which is incorrect, only one more word from the beginning of the document is checked prior showing a message that the check is complete. Instead, all incorrect words starting from the beginning of the document should be spellchecked. The issue is reproduced when adding the incorrect words to the dictionary. In order to reproduce the issue, only "Ignore" or "Add to Dictionary" action should be applied. When the actions are mixed, the issue is not reproduced. Workaround: before opening the spellchecking dialog, move caret at the beginning of the document this.radRichTextBox.Document.CaretPosition.MoveToFirstPositionInDocument();
As a result, table is visualized in RadRichTextBox with extremely large column widths.
Here we are:
HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Inline;
string _html =
@"
<html>
<head>
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
</head>
<body>
<div name=""divtagdefaultwrapper"" style=""font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0"">
<div class=""WordSection1"">
<p class=""MsoNormal"" style=""text-autospace:none"">
<span style=""font-size:11pt; color:rgb(31,73,125)"">
I am out of office, please contact Aaaaaa Bbbbbbb (Tel: +1-234-567-8900/email:
<a href=""mailto:aaaaaa.bbbbbb@zzz.com"">aaaaaa.bbbbbb@zzz.com</a>) for assistance
</span>
</p>
</div>
</div>
</body>
</html>
";
RadDocument _doc = htmlProvider.Import(_html);
radRichTextBox.Document = _doc;
And here is an exception:
System.NullReferenceException
In MS Word the user could add different effects to the selected text. This could be done through Font -> Text Effects... button.
The GetSupportedExtensions method of DocumentFormatProvidersManager throws NullReferenceException when invoked.
Workaround:
HashSet<string> supportedExtensions = new HashSet<string>();
foreach (var provider in DocumentFormatProvidersManager.FormatProviders)
{
foreach (var extension in provider.SupportedExtensions)
{
supportedExtensions.Add(extension);
}
}
In HTML the width of the columns in a table could be set as proportions of the remaining free space using width="3*" Example: <TABLE> <COLGROUP> <COL width="30"> <COLGROUP> <COL width="30"> <COL width="0*"> <COL width="2*"> <COLGROUP> <COL width="1*"> <COL width="3*"> <THEAD> <TR><TD> ... ...rows... </TABLE> First the user agent will allot 30 pixels to columns one and two. Then, the minimal space required for the third column will be reserved. The remaining horizontal space will be divided into six equal portions (since 2* + 1* + 3* = 6 portions). Column four (2*) will receive two of these portions, column five (1*) will receive one, and column six (3*) will receive three. Note: This is not supported even by MS Word.
When a document containing fields and with a custom theme is exported to .docx and opened in MS Word, the theme is different. Available in R3 2018 Official Release.
If a document with default tab stops width 0 or imported or the value is set from the UI, measuring the document when it contains a tab causes an InvalidOperationException with message "MeasureOverride returned Nan". Workaround: If the case is importing a document, change the default tab stop width to value which is not 0. if (document.DefaultTabWidth == 0) { // set this to large number if there are performance problems, e.g. 0.5. document.DefaultTabWidth = 0.01; } Steps to reproduce: 1. Load RadRichTextBox and add text in it. 2. Change default tab stops value from the Paragraph Properties Dialog -> Tabs Dialog to 0'' 3. Add a tab to the paragraph. Observed: InvalidOperationException with message "MeasureOverride returned NaN" is thrown. Fix available in LIB Version 2017.3.1120.