Completed
Last Updated: 21 Mar 2024 05:53 by ADMIN
Release 2024.1.305 (2024 Q1)

Handle import of documents with self-referring styles.

As a workaround, you can go through the RTF document structure of a single file and utilize Regex to resolve the self-referring styles like this:

string rtf = File.ReadAllText("inputFile.rtf");
rtf = FixSelfReferringStyles(rtf);

Telerik.Windows.Documents.Flow.FormatProviders.Rtf.RtfFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Rtf.RtfFormatProvider(); 

 var document = provider.Import(rtf);

...

private static string FixSelfReferringStyles(string rtf)
{
    string regexString = @"{\\s([0-9]+)[^}]*\\slink([0-9]+)";

    var matches = Regex.Matches(rtf, regexString);
    foreach (Match match in matches)
    {
        if (match.Groups[1].Value == match.Groups[2].Value)
        {
            var oldValue = match.Groups[0].Value;
            var newValue = oldValue.Replace(@" \slink" + match.Groups[1].Value, string.Empty);
            rtf = rtf.Replace(oldValue, newValue);
        }
    }

    return rtf;
}

 

Completed
Last Updated: 08 Sep 2023 10:10 by ADMIN
Release R3 2023
Handle HTML import of base64 images with no data source.
Completed
Last Updated: 08 Sep 2023 12:43 by ADMIN
Release R3 2023
Introduce support for importing documents with fields inside of runs.
Completed
Last Updated: 08 Sep 2023 12:44 by ADMIN
Release R3 2023
Created by: Fabien
Comments: 1
Category: WordsProcessing
Type: Feature Request
1
Introduce support for importing documents with nested runs.
Completed
Last Updated: 18 May 2023 07:19 by ADMIN
Release R2 2023
Mail merge does not work if the template contains a Table Of Contents
Completed
Last Updated: 07 Sep 2023 12:53 by ADMIN
Release LIB 2023.2.918 (18 Sep 2023)
Created by: Fabian
Comments: 0
Category: WordsProcessing
Type: Feature Request
1
Add support for BIN images
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release R1 2023
ADMIN
Created by: Martin
Comments: 0
Category: WordsProcessing
Type: Feature Request
0
A table of authorities lists the references in a legal document, along with the numbers of the pages the references appear on. To create a table of authorities a special TA (Table of Authorities Entry) field (TaField) should be inserted in the document.
Completed
Last Updated: 18 Jul 2022 13:29 by ADMIN
Release R3 2022
This attribute specifies the caption for the current DrawingML object. Currently, it is omitted while importing the content with DocxFormatProvider.
Completed
Last Updated: 26 Apr 2022 11:16 by ADMIN
Release R2 2022
This attribute specifies the alternative text for the current DrawingML object, for use by assistive
technologies or applications which do not display the current object. Currently it is omitted while importing the content with DocxFormatProvider
Completed
Last Updated: 20 Jan 2022 08:20 by ADMIN
Release R1 2022
Expose a method that deletes the content between two inlines
Completed
Last Updated: 21 Oct 2021 14:00 by ADMIN
Release R3 2021 SP1
Text is not replaced when the document contains empty fields
Completed
Last Updated: 23 Oct 2021 17:16 by Tom
Release R3 2021 SP1
Implement options for setting hyperlink on an image and preserving it in import/export.
Completed
Last Updated: 26 Aug 2021 12:53 by ADMIN
Release R3 2021

 Exception trying to import HTML that contains width with an empty value. For example:

<table width="">

Completed
Last Updated: 02 Aug 2021 14:24 by Marc
Release R3 2021
The <col> tag specifies column properties for each column within a <colgroup> element. It is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row. This functionality is currently not respected while importing with HtmlFormatProvider.
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release R3 2022 SP1
Created by: SAI RADHA MANI
Comments: 1
Category: WordsProcessing
Type: Feature Request
0

You can add captions to figures, equations, or other objects.

From the Office Open XML File Formats Specification: This element specifies the contents and positioning for captions which can be used to automatically label objects in a WordprocessingML document. A caption is a string that labels an object included in a WordprocessingML document, and typically consists of a string plus a field which numbers this item within a collection of similar objects.

Similar functionality can be achieved using the CustomCodeField:

RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
using (Stream stream = File.OpenRead("Image1.jpg"))
{
	ImageInline image = editor.InsertImageInline(stream, "jpg");
	editor.InsertBookmark("Image", image, image);
}

editor.InsertBreak(BreakType.LineBreak);
editor.InsertText("Figure ");
editor.InsertField("SEQ Image", "Update Figure Number");

Completed
Last Updated: 02 Apr 2021 11:36 by ADMIN
Release R2 2021

Make it possible to import HTML file with an external style sheet, without the need to handle the LoadStyleSheetFromUri event in HtmlImportSettings. If the URL is correct the data can be internally downloaded.

Completed
Last Updated: 29 Jan 2021 15:31 by ADMIN
Release R1 2021 SP1

The missing feature leads to this unwanted behavior:

  • When there is content control, which generates content on interaction, and it has some custom run properties set to it, they are lost when the user modifies it.

 

As a workaround, you need to apply a custom style (with the desired run properties) and apply it to the content control.

Completed
Last Updated: 21 Jan 2021 09:33 by ADMIN
Release R1 2021
Currently, the unsupported Structured document tags (SDTs) in the document are skipped on import.
Completed
Last Updated: 30 Mar 2020 06:57 by ADMIN
Release R2 2020
Currently, the Line breaks <br> are not exported to plain text format.

Workaround:
Replace <br> tags in the HTML document with a marker
string html = File.ReadAllText("Source.html");
string newHtml = html.Replace("<br>", "[br]");
File.WriteAllText("NewSource.html", newHtml);
Then import the edited HTML and export it as plain text, then replace the markers with "\r\n"
using (Stream stream = File.OpenRead("NewSource.html"))
{
	HtmlFormatProvider htmlFormatProvider = new HtmlFormatProvider();
	flowDocument = htmlFormatProvider.Import(stream);
	
	TxtFormatProvider txtFormatProvider = new TxtFormatProvider();
	string text = txtFormatProvider.Export(flowDocument);
	string newText = text.Replace("[br]", "\r\n");
}

Completed
Last Updated: 20 Apr 2022 11:00 by ADMIN
Release R2 2022
The WordsProcessing library doesn't support the import of image alternate attribute ("alt").
1 2 3