In Development
Last Updated: 08 Oct 2019 14:22 by ADMIN
Created by: Stefan
Comments: 0
Category: RichTextBox
Type: Bug Report
0

System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:(no path); DataItem=null; target element is 'SolidColorBrush' (HashCode=63604780); target property is 'Color' (type 'Color')

Approved
Last Updated: 07 Oct 2019 14:55 by ADMIN
When an HTML document contains a div and a span just after it, the span is imported as a child of the div. As a result, the span inherits some of the settings applied to the div.
Completed
Last Updated: 01 Oct 2019 12:40 by ADMIN
Release 2019.3.1007 (10/07/2019)
In this example, the current synchronization context is "occupied" by the task that sets the RTF string forcing the arrange tasks to wait for it to complete before they can start. However, it can never complete as it is blocked by the wait call for the arrange tasks that will never run, causing a deadlock. 
Completed
Last Updated: 01 Oct 2019 10:47 by ADMIN
Release 2019.3.1007 (10/07/2019)
System.InvalidOperationException: Cannot use a DependencyObject that belongs to a different thread than its parent Freezable. is thrown when multiple RadRichTextBoxes are instantiated in different STA threads. The cause seems to be a static freezable resource.
Approved
Last Updated: 30 Sep 2019 16:48 by ADMIN

When the copied document fragment is replaced during paste within a single RadDocument:

ClipboardEx.SetDocument(new DocumentFragment(doc));

Ordered list are not pasted correctly.

Workaround:

Bypass paste and use the InsertFragment API

this.radRichTextBox.InsertFragment(new DocumentFragment(doc));
e.Cancel = true;

Approved
Last Updated: 30 Sep 2019 08:31 by ADMIN

As suggested in the orginal support ticket 1430154 I'm opening a separate bug reprot for the RadRichTextBox.

Visual Studio 2019 solution to reproduce the problem is attached to the bug report.

Approved
Last Updated: 27 Sep 2019 09:53 by ADMIN

Showing a document which contains Table object without any TableRow inside leads to NullReferenceException.

Workaround: After importing the document, remove the tables that don't have content:

foreach (var table in document.EnumerateChildrenOfType<Table>().ToList())
{
    (table.Parent as Section).Blocks.Remove(table);
}

Approved
Last Updated: 18 Sep 2019 12:54 by ADMIN
Having a watermark test "This is a\nWatermark" is exported with an empty box instead of a new line to PDF.
Declined
Last Updated: 13 Sep 2019 15:54 by ADMIN

This can be reproduced with the provided .docx. In Word the image floats in the empty space below the text but the RichTextBox has it inline and overlapping text.

Removing the rectangle from around the image in the source document has no affect.

Declined
Last Updated: 12 Sep 2019 15:58 by ADMIN
Created by: Matt
Comments: 1
Category: RichTextBox
Type: Bug Report
0

When importing from a .docx the RichTextBox is adding a blank line for each continuous section break. You can see this in the attached file - in the RichTextBox there is an extra line between sections that does not exist in the source word document.

Completed
Last Updated: 11 Sep 2019 06:23 by ADMIN
Release LIB 2019.2.819
The exception is thrown due to an empty byte[] which is applied to the image source.
Completed
Last Updated: 10 Sep 2019 14:10 by ADMIN
Release R3 2019
Created by: Abhishek
Comments: 0
Category: RichTextBox
Type: Bug Report
0
When opening a document which contains date fields, RadRichTextBox doesn't update their values.
Workaround: Invoke UpdateAllFields() or UpdateField().
Approved
Last Updated: 06 Sep 2019 08:14 by ADMIN
Styles which contain "Headind1", "Headind2", "Headind3", "Headind4", "Headind5", "Heading6" in their names are exported as <h> elements to HTML. 

Moreover, is specific cases when the style of the name ends with specific symbols which are not allowed for element names in XML/HTML, e.g. "Heading1?", an ArgumentException is thrown.
Approved
Last Updated: 03 Sep 2019 15:12 by ADMIN
Placing the caret in a table cell containing a floating image only results in invisible caret. The formatting symbol of the TableCell is affected by the floating block as well - if there is no other content, the symbol appears under the image. When some text is inserted, the symbol is lost and clicking next to the paragraph end moves the caret in the next/previous table cell.
Pending Review
Last Updated: 03 Sep 2019 09:52 by ADMIN

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,

Approved
Last Updated: 03 Sep 2019 09:32 by ADMIN
Pasting style from Word with accent letters in the name is not properly displayed in the Styles Gallery. For example, pasting word style named "Estàèélo1" will be displayed as "Estаийlo1". 
Approved
Last Updated: 02 Sep 2019 12:25 by ADMIN
Keyboard commands are not working for controls inside the InlineUIContainer. The reason for this is that RichTextBox is handling them.
The commands are: Left, Right, Backspace, Delete, Tab, Ctrl+C, Ctrl+V among others.

Workaround:
Attach custom event handler to the PreviewEditorKeyDown event of the RichTextBox. This event should set "e.SuppressDefaultAction = true" when the focus is in the InineUIContainer.
Approved
Last Updated: 28 Aug 2019 11:05 by ADMIN
Exporting RTF document breaks right to left text direction.
Declined
Last Updated: 28 Aug 2019 11:05 by ADMIN
Created by: Yaroslav
Comments: 1
Category: RichTextBox
Type: Bug Report
0

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 

Won't Fix
Last Updated: 23 Aug 2019 16:18 by ADMIN
"Win32Exception (0x80004005): Not enough storage is available to process this command" is thrown when multiple RadDocument instances are created in background threads. 

This is due to the fact that RadDocument contains MailMergeDataSource object, which is DependencyObject. When multiple dependency objects are created in different threads, they are not property freed by thread's Dispatcher.

Workaround 1: Microsoft provided workaround in a bug report here:
https://connect.microsoft.com/VisualStudio/feedback/details/620588/system-componentmodel-win32exception-0x80004005-not-enough-storage-is-available-to-process-this-command , namely:
------------------------------
Put the following code:

Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
dispatcher.BeginInvokeShutdown(DispatcherPriority.Normal);
Dispatcher.Run();

anywhere in the background thread processing the RadDocument.
-----------------------------

Workaround 2: Use pooling of the used threads. The problem is that Task Parallel Library (which has built-in pooling) does not use STA threads by default, but this can be achieved by using custom TaskScheduler (attached, the code is get from here: https://code.msdn.microsoft.com/ParExtSamples ):

            var parallelOptions = new ParallelOptions()
            {
                TaskScheduler = new StaTaskScheduler(Environment.ProcessorCount)
            };

            Parallel.For(0, 10000, parallelOptions, cc =>
            {
                    var document = new DocxFormatProvider().Import(data);
                    byte[] pdfBytes = new PdfFormatProvider().Export(document);

            };
1 2 3 4 5 6