To reproduce: - Click the AA Styles button to open the Styles dialog. - Scroll down and select the CodeBlock item - The style does not change
This field retrieves a character through a code value specified in the field-argument. Such documents are common and are created when symbols (e.g. with font Windings through Insert -> Symbol dialog) are inserted in RTF documents in MS Word.
To reproduce: var d = new RadDocument(); var s = d.GetStatisticsInfo(); Workaround: var d = new RadDocument(); if (d.Sections.Count > 0 && d.Sections.Last.Blocks.Count >0) { var s = d.GetStatisticsInfo(); }
When the document is protected, CommandExecuting is not raised when the user double clicks the header or footer area.
I added this line just before Application.Run(new MainForm()); in Word-inspired project:
RichTextBoxLocalizationProvider.CurrentProvider = RichTextBoxLocalizationProvider.FromFile(@
"AllCapsRichTextBoxStrings.xml"
);
I took RichTextBoxStrings.xml from localization page of RichTextEditor. In the xml file I converted all the text between <value> tags to uppercase, and also replaced "OK" (value of "Confirm" data element) with "AYE". I expected all the OK's in all the forms within rich text editor to be replaced, but they all remained as "Ok" (note the lower case "k" here). Well, all except Page Layout > Columns form, which did display AYE, and also References > Insert citation. So, here are the issues that I found:
To create AllCapsRichTextBoxStrings.xml, make a copy of provided resource file, open it in Notepad++ and replace all <value>([^<]*)</value> with <value>\U\1\E</value> using regular expressions, and then replace all &, < and > with &, < and >.
Currently invalid attribute values, including invalid or empty values in CSS attributes in the 'style' attribute, could cause importing property with incorrect value, or NullReferenceException (the document cannot be imported). Examples: ---------------------------------------------------------- <table width=”*”> <tr> <td>More Random Text</td> </tr> </table> The table is imported with 0 width. Instead the width should not be set. ---------------------------------------------------------- <table style="font-size:;"> <tr> <td>More Random Text</td> </tr> </table> NullReferenceException is thrown. ---------------------------------------------------------- <p style='padding: 3px 3px 3xp 7px;'>test</p>
IndexOutOfRangeException is thrown.
----------------------------------------------------------Workaround: replace the invalid values before import: string importString = html.Replace("font-style: ;", "");
The field result shows the number of pages the current section contains.
See attached!
The spacing between the letters is too big.
To reproduce: 1. Open the following article: https://aajtak.intoday.in/gallery/indonesian-tsunami-warning-earthquake-lombok-island-dead-body-1-24549.html 2. Copy its title 3. Paste in Notepad/Notepad++ 4. Copy from notepad 5. Paste in RTE
Se the attached video to reproduce.
<samp> HTML element could be imported as span with specific formatting. Currently it's just ommited.
************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.WinForms.Documents.UI.UIProviders.WatermarkUIProvider.Arrange(UILayerUpdateContext uILayerUpdateContext) at Telerik.WinForms.Documents.UI.Layers.ProviderUILayerBase.ArrangeChildren() at Telerik.WinForms.Documents.UI.DocumentPrintPresenter.ArrnageUILayers() at Telerik.WinForms.Documents.UI.DocumentPrintPresenter.MeasureOverride(SizeF availableSize) at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize) at Telerik.WinControls.RadElement.Measure(SizeF availableSize) at Telerik.WinControls.RadElement.MeasureChildren(SizeF availableSize) at Telerik.WinControls.RichTextEditor.UI.FrameworkElement.MeasureOverride(SizeF availableSize) at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize) at Telerik.WinControls.RadElement.Measure(SizeF availableSize) at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout() at Telerik.WinForms.Documents.UI.DocumentPrintPresenter.Telerik.WinForms.RichTextEditor.IDocumentEditorPresenter.UpdateLayout() at Telerik.WinForms.RichTextEditor.RadRichTextBox.<>c__DisplayClass3.<UpdateEditorLayout>b__2() at Telerik.WinForms.RichTextEditor.RadRichTextBox.UpdateEditorLayout(Boolean focusCarret, Boolean updateCaretSize, Boolean async) at Telerik.WinForms.RichTextEditor.RadRichTextBox.set_ActiveEditorPresenter(IDocumentEditorPresenter value) at Telerik.WinForms.RichTextEditor.RadRichTextBox.Telerik.WinControls.UI.IPrintable.BeginPrint(RadPrintDocument sender, PrintEventArgs args) at Telerik.WinControls.UI.RadPrintDocument.OnBeginPrint(PrintEventArgs e) at System.Drawing.Printing.PrintDocument._OnBeginPrint(PrintEventArgs e) at System.Drawing.Printing.PrintController.Print(PrintDocument document) at System.Drawing.Printing.PrintDocument.Print() at System.Windows.Forms.PrintPreviewControl.ComputePreview() at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo() at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbacks() To reproduce: please refer to the attached gi file demonstrating how to replicate the problem with the Demo application. Workaround: private void radRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e) { if (e.Command is ChangeIntegratedWatermarkTypeCommand && this.radRichTextEditor1.LayoutMode!= Telerik.WinForms.Documents.Model.DocumentLayoutMode.Paged) { e.Cancel = true; } }
Use attached to reproduce.