Completed
Last Updated: 19 May 2022 12:12 by ADMIN
Release R2 2022 SP1
Vipul
Created on: 23 Jul 2020 12:59
Category: WordsProcessing
Type: Bug Report
0
WordsProcessing: PdfFormatProvider: Wrongly exported table width when table preferred width is set to fixed and it is greater than the available page width

Wrongly exported table width when the table preferred width is set to fixed:

<w:tblW w:w="11160" w:type="dxa"/>

and it is greater than the available page width: 

<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="630" w:right="1440" w:bottom="540" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/>

Available page width = 12240 - (1440 + 1440) = 9360

A possible workaround is to set the page width to Auto:

IEnumerable<Table> tables = document.EnumerateChildrenOfType<Table>();
foreach (Table table in tables)
{
	if (table.PreferredWidth.Type == TableWidthUnitType.Fixed)
	{
		table.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Auto, table.PreferredWidth.Value);
	}
}

 

2 comments
ADMIN
Peshito
Posted on: 19 May 2022 12:12

Hello,

This item will be available in R2 2022 SP1 Release. 

It is also available with Telerik UI for WPF's latest internal build - LIB 2022.2.523 (23 May 2022) if you need it earlier.

Regards,
Peshito
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Vipul
Posted on: 24 Jul 2020 07:57
Thank you for the quick response. It works as expected after changing the width as suggested.