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.
Syncfusion Feedback

Table width

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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)

Thanks
JC


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:
forum97353-1159629789.zip

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

Regards,
priyadharshini


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.

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

;