Completed
Last Updated: 02 Dec 2020 09:29 by ADMIN
Release R1 2021
Johann
Created on: 20 Nov 2020 12:31
Category: WordsProcessing
Type: Bug Report
1
WordsProcessing: TxtFormatProvider: Wrongly exported hyperlink to plain text

Currently, the hyperlink is exported not as hyperlink text only but additionally, all the field data is included.

Steps to reproduce:

  1. Insert a hyperlink to the RadFlowDocument
    editor.InsertHyperlink(text:"telerik", uri:"http://www.telerik.com", isAnchor:false, toolTip:"Telerik site");
  2. Export to plain text using the TxtFormatProvider.

Actual:  HYPERLINK "http://www.telerik.com" \o "Telerik site" Telerik
Expected: Telerik

Workaround:

IEnumerable<Run> runs = document.EnumerateChildrenOfType<Run>();
foreach (Run run in runs.ToList())
{
	if (run.Text.Trim().StartsWith("HYPERLINK"))
	{
		run.Paragraph.Inlines.Remove(run);
	}
}

1 comment
ADMIN
Peshito
Posted on: 02 Dec 2020 09:29

Hi,

This item will be available in R1 2021 Release. 

It is also available with Telerik UI for WPF's latest internal build - LIB 2020.3.1207 (07/12/2020) if you need it earlier. 

Regards,
Peshito
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.