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;

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);

Last Updated: 14 Aug 2019 10:40 by ADMIN
Release LIB 2019.2.819 (08/19/2019)
EnableAsynchronousTextInsertion is not respected in a custom caret and any text input is now process asynchronously. 
Last Updated: 02 Aug 2019 15:01 by ADMIN
Release LIB 2019.2.805 (08/05/2019)
If the document contains a style that is based on a style with a duplicate name, RadDocument detects it as a cycle in style inheritance. 
Last Updated: 25 Jul 2019 13:36 by ADMIN
Release LIB 2019.2.729 (07/29/2019)
When a gif or tif image is copied and then pasted into the document does not result in the original image. "Image not found" icon appears instead.
In Development
Last Updated: 11 Jul 2019 10:49 by ADMIN
The ImagesDeflaterCompressionLevel and ContentsDeflaterCompressionLevel in the PdfFormatProvider's export settings have 0 for default value instead of -1.

Workaround: Change the settings's properties to -1 explicitly.
Won't Fix
Last Updated: 10 Jul 2019 15:52 by ADMIN
Exporting documents that contain PNG images SMask and ImagesDeflaterCompressionLevel is set to a non-default value may produce a document in which those images are not processed correctly by Adobe reader.
Won't Fix
Last Updated: 10 Jul 2019 15:49 by ADMIN
On export to HTML tab stops are converted to non-breaking spaces ( ). Sometimes the width of the all nbsp-s becomes different than the width of the tab stop. When document which contains grid-like data is exported to HTML its columns are not aligned.
Last Updated: 10 Jul 2019 08:41 by ADMIN
Release LIB 2019.2.715 (07/15/2019)
The exception is thrown while typing and is with message "Value cannot be null. Parameter name: insertIMETextCommandContext". 
Last Updated: 28 Jun 2019 14:11 by ADMIN

Hi Telerik,

We are converting XAML content into PDF file with below code.

private byte[] Xaml2Pdf(string xamlContent)
		XamlFormatProvider xamlFormatProvider = new XamlFormatProvider();
		PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
		PdfExportSettings exportSettings = new PdfExportSettings();
		exportSettings.ContentsCompressionMode = PdfContentsCompressionMode.Automatic;
		exportSettings.ContentsDeflaterCompressionLevel = 9;
		exportSettings.DocumentInfo = new PdfDocumentInfo() { Producer = "ALIS", Author = "ALIS", Creator = "ALIS" };
		exportSettings.ImagesCompressionMode = PdfImagesCompressionMode.Automatic;
		exportSettings.ImagesDeflaterCompressionLevel = 9;
		pdfFormatProvider.ExportSettings = exportSettings;

		byte[] content = pdfFormatProvider.Export(xamlFormatProvider.Import(xamlContent));

		return content;
When we convert attached XAML content with above code it will gives an output pdf file but when we open pdf file into Adobe Reader DC it will display some error message before opening it.

Currently we are using 2016.2.905.45 version.

Previously when we was use 2016.1.302.45 version at that time we didn't notice same issue.

Please assist.

Thank you.
Last Updated: 20 Jun 2019 08:24 by ADMIN

Adding bookmarks with the same name programmatically always returns the first one in case use attempts to navigate to it using the Bookmarks dialog. 

Workaround: Remove the bookmark before adding a new one with the very same name.

Last Updated: 17 Jun 2019 07:47 by ADMIN
When there is a text in a table row with dash and not space after makes the text squeezed when exported to PDF. For instance "Self-Insured". If the text is "Self - Insured" it is exported fine.
Last Updated: 14 Jun 2019 18:17 by ADMIN
Html exported from RadRichTextBox will be shown in Outlook with some formatting issues related to lists. The text in a paragraph will be shown with the formatting of its bullet.

The reason is that the content is exported to HTML as a styled list level which Outlook does not understand. The same applies to MS Word as well. This can also lead to formatting issues when the document is later imported in RichTextBox.

You can check the attached screenshot for reference.

Change the styles to export as inline properties:
htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Inline;
Last Updated: 12 Jun 2019 13:13 by ADMIN
The exception is thrown in RadDocument.IsInNonEditableRange() method, which is called before measuring the document. When using a format provider, the error is thrown but the document can still be opened in RichTextBox. In binding scenario, the document is not imported.

Workaround: Ensure the document is measured before assigning it to RadRichTextBox.
Last Updated: 10 Jun 2019 12:57 by ADMIN
Release LIB 2019.2.610 (06/10/2019)
When a text doesn't specify font explicitly with \fN tag, and default character properties (\defchp) are not specified, or are specified but without font set, the font of the text is visualized with the default font - Verdana. Instead, the default font for the document should be used - defined with \deffN tag.
Last Updated: 28 May 2019 13:05 by ADMIN
The generated ImageSource is associated with the import thread, while the UI invokes layout logic, which depends on that image, on the main thread. This causes a cross thread access exception.
Last Updated: 28 May 2019 10:46 by ADMIN
When the attribute is defined but no value is set to it, the format provider cannot import the content and throws NullReferenceException.
Last Updated: 16 May 2019 14:09 by ADMIN
The exception is thrown by the SystemFontsManager internal class from Telerik.Windows.Documents.Core, so it can observed when using RadPdfViewer, RadRichTextBox, RadSpreadsheet.

The reason is not clear, posssible causes are:
- Corrupted fonts after upgrade from Windows XP
- Enabling of Block untrusted fonts feature (https://docs.microsoft.com/en-us/windows/threat-protection/block-untrusted-fonts-in-enterprise )

The call stack is as follows:

System.TypeInitializationException: The type initializer for 'Telerik.Windows.Documents.Core.Fonts.SystemFontsManager' threw an exception. ---> System.IO.FileNotFoundException: Unable to find the specified file.
   at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)
   at MS.Internal.Text.TextInterface.FontList.get_Item(UInt32 A_0)
   at MS.Internal.Text.TextInterface.FontList.FontsEnumerator.get_Current()
   at MS.Internal.FontFace.TypefaceCollection.Enumerator.get_Current()
   at System.Windows.Media.Fonts.TypefaceCollection.<GetEnumerator>d__11.MoveNext()
   at Telerik.Windows.Documents.Core.Fonts.SystemFontsManager..cctor()


Manually delete all registry key values in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts pointing to files outside of the Fonts folder.
Last Updated: 16 May 2019 13:51 by ADMIN
In some cases when an image is copied from an external source and pasted in the rich text box, the image is not displayed. This is caused by the Clipboard.GetImage() method used internally by the control. 

To work this around, you can subscribe for the CommandExecuting event of RadRichTextBox and manually get the image from the clipboard.

private void Rtb_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)

	PasteCommand command = e.Command as PasteCommand;
	if (command != null && (Clipboard.GetData("DeviceIndependentBitmap") != null))
		//Get the image stream from the clipboard.
		//You can check the following blog post for an approach which you can use to get the image properly:
		this.radRichTextBox.InsertImage(imageStream, "jpeg");
		e.Cancel = true;
Last Updated: 16 May 2019 13:15 by ADMIN
Using Microsoft Pinyin IME for typing in the RichTextBox causes FatalExecutionEngineError exception. 

Last Updated: 02 May 2019 10:47 by ADMIN
Typing in Find dialog is not possible when having an ElementHost in a WinForms Windows to host a WPF User Control which contains the RadRichTextBox.