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 sizes and alignment

Thread ID:





46546 Jul 14,2006 03:54 PM UTC Jul 14,2006 11:18 PM UTC WinForms 1
Tags: PDF
Administrator [Syncfusion]
Asked On July 14, 2006 03:54 PM UTC

I''m creating a table in flow model and I need to know how to restrict the horizontal size of the table. Right now my table spans the entire width of the page. I''d like to align the table in the center of the page and restrict the horizontal size - arbitrary size or fixed. Thanks, Bill

Ajish [Syncfusion]
Replied On July 14, 2006 11:18 PM UTC

Hi Bill, You can adjust the width of the table using the following code table.Width =200; and you can center align the table in the page by aligning the paragraph in which the table is drawn. Here is a code for aligning the paragraph. paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center; and here is a sample for your reference: InsertTable.zip Please take a look and let me know if you have any questions. Thanks, Ajish.


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