Unplanned
Last Updated: 26 Apr 2022 06:01 by Marcin

To reproduce: 

-Change the normal style in a document and insert it into another document using RenameSourceStyle option.

The style is renamed and inserted but is not applied to the content.

Unplanned
Last Updated: 21 Apr 2022 12:23 by Andy F.

WordsProcessing: Merging a RadFlowDocument document into the target document over around 130 times breaks formatting when the target document is an empty RadFlowDocument.

The workaround to this issue is to set the target document to an existing RadFlowDocument such as the source before merging.

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: 31 Oct 2023 14:53 by ADMIN
Release R3 2023 SP1

Exception when converting table with empty runs in the cells.

 

 

Unplanned
Last Updated: 31 Mar 2022 07:21 by Sumair
The column with is not exported correctly when converting from HTML to DOCX
Completed
Last Updated: 12 Apr 2022 15:07 by ADMIN
Release R2 2022
Floating images positioned outside of page borders are moved inside the page when converting to PDF.
Completed
Last Updated: 12 Apr 2022 14:57 by ADMIN
Release R2 2022

When calling the MailMerge method on a RadFlowDocument, which includes an IF field, where no FalseText (value to display when the expression evaluates to FALSE) is defined the following exception is thrown System.NullReferenceException: 'Object reference not set to an instance of an object.'

Workaround: Setting a string (empty works too) for the FalseText. 
When the document is passed to the following method, all IF fields are edited so that the exception is not thrown:

private void EmptyIfSecondArgumentWorkaround(RadFlowDocument document)
{
	List<FieldCharacter> collection = document.EnumerateChildrenOfType<FieldCharacter>().Where(f => f.FieldCharacterType == FieldCharacterType.Start).ToList();

	for (int i = 0; i < collection.Count; i++)
	{
		FieldInfo item = collection[i].FieldInfo;
		string code = item.GetCode();
		FieldCharacter separator = item.Separator;
		FieldCharacter end = item.End;

		if (code.TrimStart().StartsWith("IF"))
		{
			FieldCharacter codeEnd;
			if (separator.Paragraph != null)
			{
				codeEnd = separator;
			}
			else
			{
				codeEnd = end;
			}
			string emptyString = " \"\" ";
			string mergeFormatCodeSuffix = "\\*";
			if (codeEnd.Paragraph.Inlines.Count > 1)
			{

				string editedMergeFormatCodeSuffix = string.Join("", new string[] { emptyString, mergeFormatCodeSuffix });
				int codeEndIndex = codeEnd.Paragraph.Inlines.IndexOf(codeEnd);
				Run run = codeEnd.Paragraph.Inlines[codeEndIndex - 1] as Run;
				if (run.Text.Contains(mergeFormatCodeSuffix))
				{
					run.Text=run.Text.Replace(mergeFormatCodeSuffix, editedMergeFormatCodeSuffix);
				}
				else
				{
					run.Text += emptyString;
				}
			}
		}
	}
}

Unplanned
Last Updated: 11 Mar 2022 10:00 by Devan
The property controls whether all the lines of a paragraph should be rendered on the same page when the document is shown in page view mode.
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
When parsing the text content of the document, hidden characters are included in the place of the fields, making the content different than expected.
Completed
Last Updated: 08 Apr 2022 14:05 by ADMIN
Release LIB 2022.1.411 (11 Apr 2022)
RichTextBox: InvalidCastException when importing a file with a drawing containing NonVisualConnectorProperties
Completed
Last Updated: 08 Feb 2022 15:16 by ADMIN
Release R1 2022 SP1

When a field is formatted using the numberInDash format through the section's PageNumberingSettings, the format is not parsed and the field result is not included in the PDF document.

Workaround: Remove the formatting from the section settings:

foreach (var section in this.document.Sections)
{
    section.PageNumberingSettings.PageNumberFormat = null;
}

Unplanned
Last Updated: 27 Jan 2022 15:56 by ADMIN
Internally, the WebClient class is used to load external resources. This class is not supported in Blazor and WordsProcessing should provide a mechanism for loading the resource.
Completed
Last Updated: 01 Feb 2022 15:05 by ADMIN
Release R1 2022 SP1
Importing docx file throws System.InvalidOperationException "Hierarchical Index is empty" when importing a specific file.
Completed
Last Updated: 07 Feb 2022 14:41 by ADMIN
Release R1 2022 SP1
When the content control is the first element of a paragraph inside a table cell and doesn't have content, NullReferenceException is thrown while parsing the document.
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release R3 2022 SP1

Importing html image with no source and then exporting it to pdf causes an exception, instead of omitting the faulty image.

Such images can be stripped using the following workaround:

List<ImageInline> images = this.document.EnumerateChildrenOfType<ImageInline>().ToList();

foreach (var image in images)
{
      if (image.Image.ImageSource == null)
      {
               image.Paragraph.Inlines.Remove(image);
      }
}

Unplanned
Last Updated: 23 Dec 2021 12:46 by ADMIN

The table is cut off when its width is larger than the default page width.

Workaround: 

var htmlProvider = new HtmlFormatProvider();
var document = htmlProvider.Import(File.ReadAllText(@"..\..\HTMLPage1.html"));

var tables = document.EnumerateChildrenOfType<Table>();
double maxWidth = document.Sections.FirstOrDefault().PageSize.Width;

foreach (var item in tables)
{
    if (item.PreferredWidth.Type == Telerik.Windows.Documents.Flow.Model.Styles.TableWidthUnitType.Fixed)
    {
        maxWidth = Math.Max(maxWidth, (item.PreferredWidth.Value + 100));
    }
}

foreach (var item in document.Sections)
{
    item.PageSize = new System.Windows.Size(maxWidth, item.PageSize.Height);
}

var pdfProvider = new PdfFormatProvider();
File.WriteAllBytes(@"..\..\result.pdf", pdfProvider.Export(document));

Unplanned
Last Updated: 16 Dec 2021 13:29 by ADMIN
Currently, invoking the InsertStructuredDocumentTag method inserts only the start and end elements for content control. That way, the content control remains empty and one should explicitly add its content so that the control can be seen when the document is visualized. Apply default values for the different types of content controls to make their creation easier.
Completed
Last Updated: 21 Dec 2021 10:32 by ADMIN
Release R1 2022
The default left and right margins for a table in MS Word are 0.08". However, the DocxFormatProvider uses 0 as a default value and overrides the padding when any of the top, bottom, right, or left is applied. For example:

<w:tblCellMar>
	<w:top w:w="2880" w:type="dxa"/>
	<w:bottom w:w="2880" w:type="dxa"/>
</w:tblCellMar>
after import/export results in
<w:tblCellMar>
	<w:top w:w="2880" w:type="dxa"/>
	<w:left w:w="0" w:type="dxa"/>
	<w:right w:w="0" w:type="dxa"/>
	<w:bottom w:w="2880" w:type="dxa"/>
</w:tblCellMar>

Duplicated
Last Updated: 07 Dec 2021 11:23 by ADMIN
Created by: Dominik
Comments: 1
Category: WordsProcessing
Type: Bug Report
2

Hello,

 

we are describing a reproducable problem (WordProcessing demo page), where DOCX footnotes are not imported as expected.

 

Current behaviour:

Upon converting a custom DOCX (including footnotes) into a DOCX again, using the WordProcessing demo, the converted document does no longer contain any footnotes.

 

Expected behaviour:

The downloaded DOCX should still contain all footnotes from the uploaded DOCX after converting it.

 

How to reproduce:

  1. Download docx sample file (or create new Word 2016 document -> References -> Add footnote)
  2. Go to demo page https://demos.telerik.com/aspnet-mvc/wordsprocessing 
  3. Select "load custom document"
  4. Upload sample file
  5. Select "Convert and Download"
  6. Open the converted file - the footnotes in the document are gone

 

 

Is there anything that can be done as a workaround until this has been resolved?

 

Thank you in advance.

 

Kind Regards,

Dominik

Completed
Last Updated: 03 Feb 2022 07:45 by ADMIN
Release R1 2022 SP1
The exception is thrown for documents that contain a repeating section that spans over the whole content of a table cell. Also, the content should contain more than one paragraph.