Pending Review
Last Updated: 22 Aug 2019 06:32 by Yaroslav
Created by: Yaroslav
Comments: 0
Category: WordsProcessing
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 

Approved
Last Updated: 19 Aug 2019 07:13 by ADMIN

The construct <link rel="stylesheet" href="main.min.css" /> doesn't raise the HtmlImportSettings.LoadFromUri event on import, as we currently require type="text\css" to be specified explicitly.

According to mdn:
The common use of this attribute is to define the type of stylesheet being referenced (such as text/css), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the type attribute, but is actually now recommended practice. 


Think of improving the message of the exception we throw if no data is loaded.

Workaround: set type explicitly:
<link rel="stylesheet" type="text/csshref="main.min.css" />

Approved
Last Updated: 12 Aug 2019 12:09 by ADMIN
Created by: Naveen
Comments: 0
Category: WordsProcessing
Type: Feature Request
2
Provide support for Track Changes.
Approved
Last Updated: 09 Aug 2019 13:35 by ADMIN
Such tags are not supported in RtfFormatProvider and while skipping them, there might be fields that are not properly imported. This can lead to issues while exporting the document. If the document is re-saved using MS Word, the HTML-related tags are removed and the content can be properly imported with WordsProcessing.
Approved
Last Updated: 08 Aug 2019 10:21 by ADMIN
Created by: Naveen
Comments: 0
Category: WordsProcessing
Type: Feature Request
2
Create a feature that allows the RadWordsProcessing to split RadFlowDocument.

Workaround: DocumentElementImporter can be used to prepare a document element from the source document for import into the target document

private static void SplitDocument(RadFlowDocument sourceDocument, RadFlowDocument targetDocument)
{
    DocumentElementImporter importer = new DocumentElementImporter(targetDocument, sourceDocument, ConflictingStylesResolutionMode.UseTargetStyle);
    Section section = sourceDocument.EnumerateChildrenOfType<Section>().First();
    Section importedSection = importer.Import(section);
    targetDocument.Sections.Add(importedSection);
 
    sourceDocument.Sections.Remove(section);
}
Approved
Last Updated: 07 Aug 2019 08:30 by ADMIN
RtfException "Group level reached negative value" is thrown when a document with an image defined as a resource but not found is imported and then exported to RTF
Approved
Last Updated: 02 Aug 2019 10:56 by ADMIN
Exporting document with invalid bookmarks throws System.Collections.Generic.KeyNotFoundException.

The issue is caused by an invalid bookmark having missing BookmarkRangeStart/BookmarkRangeEnd elements. As a workaround iterate through document elements and find the missing BookmarkRangeStart/BookmarkRangeEnd and insert the missing range.
Approved
Last Updated: 07 Aug 2019 06:41 by ADMIN
When an image is placed in a table row and the document is exported to PDF the image top edge is placed at the center of the table border because the border thickness is not respected.
Approved
Last Updated: 17 Jul 2019 13:18 by ADMIN
Created by: Andres
Comments: 0
Category: WordsProcessing
Type: Feature Request
1
The .bin extension represents a binary file format which can contain images as well. When a document containing such an image is imported and exported using WordsProcessing, the image is lost and the default 'no-image' placeholder is used in its place.
Completed
Last Updated: 01 Jul 2019 07:14 by ADMIN
Release LIB 2019.2.701 (07/01/2019)
When DefaultTabStopWidth of the document is zero, the export to PDF leads to infinite loop which causes the application to freeze.

Workaround
Set the DefaultTabStopWidth with non-zero value:
document.DefaultTabStopWidth = 0.1;
Approved
Last Updated: 18 Jun 2019 14:44 by ADMIN
HTML heading elements (<h1>-<h6>) are imported with the default heading styles (Heading 1 - Heading 6) for RadFlowDocument, which is unexpected, as the browsers and MS Word import them with different styling. 

For example, <h1> is imported as Heading 1 with font the following properties:

Font: Cambria
Font color: Accent 1
Spacing before: 14 pt
Spacing after: 14 pt

While MS Word imports it as:

Font: Times New Roman
Font color: not set (black)
Character spacing: Kern at 18 pt
Spacing before: Auto
Spacing after: Auto
Approved
Last Updated: 18 Jun 2019 14:39 by ADMIN
"bolder" font weight is imported as regular font weight in the RadFlowDocument model. Instead, it should be imported as bold.
Completed
Last Updated: 07 Aug 2019 13:30 by ADMIN
Release LIB 2019.2.812 (08/12/2019)
According to the HMTL specification, the width and height attributes of an img tag has unsigned long values. When a width or height values with a unit suffix is imported, e.g.: 50%, FormatException: 'Input string was not in a correct format.' is thrown.
Completed
Last Updated: 07 Aug 2019 13:23 by ADMIN
Release LIB 2019.2.812 (08/12/2019)
Created by: Blane Bunderson
Comments: 0
Category: WordsProcessing
Type: Bug Report
1
Hyperlinks created via HtmlFormatProvider are not properly exported to PDF and cannot be clicked.
Approved
Last Updated: 09 Apr 2019 15:04 by ADMIN
Created by: Zlatko
Comments: 0
Category: WordsProcessing
Type: Feature Request
2

When exporting, an option of how to create the PDF bookmarks should be provided:
- Using the RadFlowDocument bookmarks
- Using document Headings

Approved
Last Updated: 23 May 2019 14:48 by ADMIN
Created by: Grinden
Comments: 2
Category: WordsProcessing
Type: Feature Request
2

The non-breaking hyphen element is currently not supported in the model and is stripped when importing the document.


Approved
Last Updated: 18 Mar 2019 09:54 by ADMIN
When a list is just before the table, all of its list items are inserted in the first cell of the table while exporting to HTML.

Workaround: Add a paragraph between the list and the table
foreach (var section in this.document.Sections)
{
    bool shouldInsert = false;
  
    foreach (var block in section.Blocks.ToList())
    {
        var paragraph = block as Paragraph;
        if (paragraph != null && paragraph.ListId > -1)
        {
            shouldInsert = true;
        }
        else if (shouldInsert)
        {
            var paragraphToInsert = new Paragraph(this.document);
            paragraphToInsert.Spacing.LineSpacing = 1;
            paragraphToInsert.Spacing.LineSpacingType = HeightType.Exact;
            paragraphToInsert.Spacing.SpacingAfter = 0;
            block.BlockContainer.Blocks.Insert(section.Blocks.IndexOf(block), paragraphToInsert);
            shouldInsert = false;
        }
    }
}
Approved
Last Updated: 12 Mar 2019 16:39 by ADMIN

The calculations are wrong, leading to single lines on a page. As a result, the content of the PDF document is laid out on a bigger number of pages.

Workaround: Change the line spacing and its type before exporting to PDF:

foreach (var paragraph in this.document.EnumerateChildrenOfType<Paragraph>())
{
    if (paragraph.Properties.LineSpacingType.GetActualValue() == Telerik.Windows.Documents.Flow.Model.Styles.HeightType.Exact)
    {
        paragraph.Properties.LineSpacingType.LocalValue = Telerik.Windows.Documents.Flow.Model.Styles.HeightType.Auto;
        paragraph.Properties.LineSpacing.LocalValue = 2;
    }
}

Completed
Last Updated: 13 Mar 2019 10:59 by ADMIN
By specification, the src attribute for images in the HTML content must be present and must contain a valid non-empty URL potentially surrounded by spaces.

However when embedded images with leading white spaces are imported, UriFormatException: 'Invalid URI: The Uri string is too long.', is thrown.
Approved
Last Updated: 18 Feb 2019 13:03 by ADMIN
There is a mismatch between the coordinates of the image and its mask causing some lines to appear in the PDF document. Extracting the image itself in a separate file doesn't show any issues - they can be seen only in the generated document.
1 2 3 4 5 6