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.
Unfortunately, activation email could not send to your email. Please try again.

Table width

Thread ID:





97353 Nov 19,2010 08:48 AM Nov 23,2010 03:23 AM Windows Forms 1
Tags: PDF
James Crane
Asked On November 19, 2010 08:48 AM


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 03:23 AM

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.

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.