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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PdfLightTable column width problem after upgrading the version

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

we have been using old syncfusion version 13.3.0.18 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 13.3.0.18 managed to autosize the columns so all have been displayed (see attached screenshot).

Now we updated to syncfusion version 17.1.0.47 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 13.3.0.18's behavior?

If we do not set any column width then each column width is evenly sized and displayed with 17.1.0.47. However we would like to keep the behavior of 13.3.0.18 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 15.4.0.20 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 17.1.0.47 and 13.3.0.18. Effect from version 15.3.0.26, 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 (13.3.0.18). 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 17.1.0.47. This is effectively available only from the product version 17.2.0.34.  
 
Kindly try the above solution in your end and let us know if it satisfies your requirement.  

Regards, 
Sowmiya L 
 


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

Thanks 17.2.0.34 works!




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

Hi Tobias, 

We glad to know that your issue is resolved. 

Regards, 
Sowmiya L 


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

Thanks 17.2.0.34 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 17.2.0.34 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 15.2.0.40 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.   
 
Regards, 
Sowmiya Loganathan 


CONFIRMATION

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