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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Table width

Thread ID:





97353 Nov 19,2010 01:48 PM UTC Nov 23,2010 08:23 AM UTC WinForms 1
Tags: PDF
James Crane
Asked On November 19, 2010 01:48 PM UTC


I'm trying to restrict the horozontal width of a table. This post (http://www.syncfusion.com/support/forums/pdf-windows/46546/Table-sizes-and-alignment) made reference to a Width property, but it's not coming up for me.:

PdfLightTable table = new PdfLightTable();
table.Width = 200 (Fails, no such property)


Priyadharshini J [Syncfusion]
Replied On November 23, 2010 08:23 AM UTC

Hi James,

Thank you for your interest in syncfusion products.

To restrict the horizontal width of a table, we must specify the table width in the draw method. Kindly refer the code below. In this the width of the table is specified as half the page width.
PdfLayoutResult result = table.Draw(page, new RectangleF(10,60,page.Graphics.ClientSize .Width/2,0));

Kindly refer the sample in the link below:

Please try this and let us know if you have any queries.



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