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
close icon

How to set column width in a table ? Version 11.2.0.25

Hi,

I wish to be able to set the widths of individual columns in a table using DocIO. In your source example I see there is a Columns property of the IWTable object, but it is not available when I am coding in Visual Studio, nor it is appearing in your class documentation.

So far the only way I can set the column widths is using the ResetCells method, but that sets all columns widths to the same value.

Can you  please advise on what I need to do ?

Thanks

Chris

1 Reply

PM Prasanth M B Syncfusion Team July 15, 2013 01:00 PM UTC

Hi Chris,

Thank you for using Syncfusion products.

Regarding Column width for the table:
Currently DocIO does not have support to set the column width of the table. Instead, kindly make use of width property of WTableCell class. We have prepared a sample to illustrate your requirement. Please do find the sample from the attachment. Try running the sample and let us know if this helps you.

Regarding column property in IWTable class:
DocIO doesn’t have columns property in IWTable class. Please refer the below UG documentation link for details.

UG documentation link:
http://help.syncfusion.com/ug/asp.net/docio/default.htm#!documents/table.htm

Please let us know if you have any questions.

Regards,
Prasanth.



Sample_d86a952b.zip

Loader.
Live Chat Icon For mobile
Up arrow icon