We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PdfLightTable column width problem after upgrading the version

Thread ID:





145836 Jul 10,2019 08:31 AM UTC Mar 24,2020 10:30 AM UTC WinForms 6
Tags: PDF
Tobias Koehn
Asked On July 10, 2019 08:31 AM UTC


we have been using old syncfusion version to create pdf documents containing a PdfLightTable. We set the Width on all PdfColumn. If there are too many the sum might be bigger than PageSettings.Width that we set on our PdfDocument. However version managed to autosize the columns so all have been displayed (see attached screenshot).

Now we updated to syncfusion version but it does not resize the column width automatically anymore. Columns now are moved out of the visible area (to the right). How can we enforce's behavior?

If we do not set any column width then each column width is evenly sized and displayed with However we would like to keep the behavior of as it at least considers bigger/smaller width columns and does not evenly resize all columns to have the same width.

Please advise what to do.

Thanks, Tobi

Attachment: Desktop_56f008e5.zip

Tobias Koehn
Replied On July 10, 2019 12:37 PM UTC

We went back to version but are facing the same problem

Sowmiya Loganathan [Syncfusion]
Replied On July 11, 2019 01:01 PM UTC

Hi Tobias,  

We have checked with the sample to draw table by setting column width (which exceeds the page width) in both product version and Effect from version, the specified width will be allocated for the columns. But in earlier (before v15.3.0.26) even in the specification of column width, these are equally shared based on the page width. Please refer the below release notes for breaking changes from below,  

However recently we have exposed API to create table as like in old product version ( Please find the below code snippet for more details, 
// Create a PdfLightTable 
PdfLightTable pdfLightTable = new PdfLightTable(); 
// To update table column width size based on PdfLightTable width size  
pdfLightTable.ColumnProportionalSizing = true;  
Note: This property will not include the product version This is effectively available only from the product version  
Kindly try the above solution in your end and let us know if it satisfies your requirement.  

Sowmiya L 

Tobias Koehn
Replied On July 11, 2019 04:43 PM UTC

Thanks works!

Sowmiya Loganathan [Syncfusion]
Replied On July 12, 2019 06:45 AM UTC

Hi Tobias, 

We glad to know that your issue is resolved. 

Sowmiya L 

Eduardo Rojas
Replied On March 23, 2020 08:35 PM UTC

Thanks works!

Hi, what do we do for portable versions? 
The portable version:
Syncfusion.Pdf.Portable, Version=15.2120.0.40, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89
does not appear to have this property.

Sowmiya Loganathan [Syncfusion]
Replied On March 24, 2020 10:30 AM UTC

Hi Eduardo,    
The property “ColumnPropotionalSizing” creates the table as in the old product version (before v15.3.0.26) and available only from the product version in the ASP.NET Core platform. Please refer the below release notes for more details,    
Note: We have noticed in your update and found that you have used the product version and by default, the table has been created as like the old version (even in the specification of column width, these are equally shared based on the page width).   
Please let us know if you need any further assistance with this.   
Sowmiya Loganathan 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon