Add support for = (Formula) fields, including the scenario with referencing other table cells. More information: https://support.office.com/en-us/article/Field-codes-Formula-field-32d5c9de-3516-4ec3-80ed-d1fc2b5bc21d?ui=en-US&rs=en-US&ad=US
When a table is auto fitted its cells are exported with incorrect width value. An additional requirement is the cells to not have any preferred width (NULL). This problem will occur only if the document is converted directly from one format to another. Possible workaround is to apply auto preferred width to all cells in that table.
Documents containing <pre> tag and line breaks (CR LF) cause unexpected visual behavior (loss of content) and invalid layout. Sporadically, document positions seem to also get invalid which leads to exceptions.
The width of the image is inherited from the table element it is in when it doesn't have a specific width set to it. Sample HTML reproducing the problem is: <html> <body> <table style="width: 700px;"> <tbody> <tr> <td> <img src="" /> </td> </tr> </tbody> </table> </body> </html> Instead, the real size of the image should be used. Workaround: Subscribe to LoadImageFromUri and set size to the image. settings.LoadImageFromUrl += (s, arg) => { if (arg.Url != null) { string extension = Path.GetExtension(arg.Url); Uri uri = new Uri(arg.Url, UriKind.RelativeOrAbsolute); System.Net.WebClient oWebClient = new System.Net.WebClient(); using (MemoryStream stream = new MemoryStream()) { oWebClient.OpenRead(uri).CopyTo(stream); arg.ImageElement.Init(stream, extension); arg.ImageElement.Size = new Size(164, 80); e.Handled = true; } } };
The table width value is exported with different decimal separator depending on the used culture. One the problem is fixed the width value should be exported with invariant culture.
When image watermark is set and its height is configured through DocumentWatermarkSettings.ImageSettings.Size.Height, the height is not respected. Steps to reproduce: 1. Insert a Watermark with size var watermarkSettings = new DocumentWatermarkSettings() { Type = WatermarkType.ImageWatermark, ImageSettings = new WatermarkImageSettings() { UriSource = new Uri("c:\1.jpg"), Size = new Size(200, 300) } }; Expected: The image is with the specified width and height. Actual: The height is different.
This property allows the user to set the transparency of the image watermark. In the OOXML, the property is written using the 'blacklevel' attribute of the image.
Hyperlink without any navigational information will crash the application with NullReferenceException when showing it.
This feedback item is duplicated. Here is the link to the original bug report: https://feedback.telerik.com/Project/143/Feedback/Details/145511-richtextbox-incorrect-layout-and-export-of-bi-directional-mixed-text-containin
The flow direction of a paragraph is automatically changed to right-to-left if all spans in the paragraph are in the right-to-left mode when importing from DOCX format.
Introduce Split Table Command.
In MS Word, the command is in Table Tools -> Layout -> Merge -> Split table.
Workaround: Use the RadDocumentEditor API to split the table:
var tableRowBox = this.radRichTextBox.Document.CaretPosition.GetCurrentTableRowBox();
if (tableRowBox != null)
{
this.radRichTextBox.BeginUndoGroup();
this.radRichTextBox.Document.Selection.Clear();
var currentRow = tableRowBox.AssociatedTableRow;
DocumentPosition start = new DocumentPosition(currentRow.GetRootDocument());
start.MoveToStartOfDocumentElement(currentRow);
DocumentPosition end = new DocumentPosition(start);
end.MoveToEndOfDocumentElement(currentRow.Table.Rows.Last);
this.radRichTextBox.Document.Selection.SetSelectionStart(start);
this.radRichTextBox.Document.Selection.AddSelectionEnd(end);
this.radRichTextBox.Cut();
this.radRichTextBox.InsertParagraph();
this.radRichTextBox.Paste();
this.radRichTextBox.EndUndoGroup("Split table");
}
Pressing Enter in the first empty cell in the second table of two adjoined tables adds the paragraph between the tables. Instead, the paragraph should be added in the cell. Steps to reproduce: - Add two tables. - Remove the paragraph between them (using the Delete key). - Add paragraph in the first cell of the second table. Expected: The paragraph is added in the cell. Actual: The tables are separated by paragraph.
When Insert date command through "Date & Time" button is executed for the first time, the date is added to the document as expected. However, if the date is inserted once again, then the date is inserted twice. If date is inserted for the third time in the document, then it will be inserted three times and so on.
Inserting a single-cell table with top border is a common workaround for the missing 'horizontal line' functionality. Exporting such table to PDF causes wrong result if the intercepting vertical borders are of type None and have smaller thickness. Attached image outlines the issue. Workaround: Set the same thickness to the noBorder and to the visible border: var t = new Telerik.Windows.Documents.Model.Table(1, 1);\ var noBorder = new Telerik.Windows.Documents.Model.Border(3, BorderStyle.None, Colors.Black); t.Borders = new TableBorders(noBorder, new Telerik.Windows.Documents.Model.Border(3, BorderStyle.Single, Colors.Black), noBorder, noBorder); Steps to reproduce: 1. Insert table with the following code: var t = new Telerik.Windows.Documents.Model.Table(1, 1); var noBorder = new Telerik.Windows.Documents.Model.Border(BorderStyle.None); t.Borders = new TableBorders(noBorder, new Telerik.Windows.Documents.Model.Border(3, BorderStyle.Single, Colors.Black), noBorder, noBorder); this.radRichTextBox.InsertTable(t); 2. Export to PDF
Import the type of the <ul> and <ol> tag, e.g. <ul type="disc"> or <ul type=circle>. Supported values are disc, circle, square.
If there is sequence with more than one font info which is not declared in a separate group, they all are concatenated and recorded in the imported fonts as a single one with id from the last one. Here is such a problematic font table group: {\\fonttbl\\f0\\froman\\fcharset0 Times New Roman;\\f1\\froman\\fcharset0 Times New Roman;\\f2\\froman\\fcharset0 Times New Roman;\\f3\\froman\\fcharset0 Times New Roman;\\f4\\froman\\fcharset0 Times New Roman;\\f5\\froman\\fcharset0 Times New Roman;}
If RadRichTextBox contains a table and is placed in a window and then the window is resized horizontally, the table border are moved unexpectedly and change their place relative to the content of the documen. If the window is maximized and/or restored, some of the borders disappear. Workaround: Execute the following code snippet in window's or RadRichTextBox' SizeChanged event handler: if (this.MyRadRichTextBox.ActiveEditorPresenter != null) { this.MyRadRichTextBox.ActiveEditorPresenter.RecreateUI(); }
FloatingUIContainers are not cleared from the UI when they are deleted. Workaround: Recreate UI using the following code: this.radRichTextBox.ActiveEditorPresenter.RecreateUI();