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 Header Alignment

Thread ID:





71101 Jan 15,2008 04:33 PM UTC Jan 17,2008 10:22 AM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Kathy Gray
Asked On January 15, 2008 04:33 PM UTC

I am in the process of upgrading a site from v. to v. In this site, I use your pdf module. On one report, I create a datatable and draw it into the pdf document. The Header for the first three columns is aligned left, and the Header for the remaining columns is aligned right. In your previous version I accomplished this using the following code:

Dim i As Integer = 0
Dim len As Integer = table.Columns.Count
Do While i < len

Select Case i
Case 0, 1, 2
TextAlignment = TextAlignment.Left
Case Else
TextAlignment = TextAlignment.Right
End Select

i += 1

But, I am not able to figure out a way to accomplish this in the new version. Would you please give me a sample that I can follow?

Thanks, Kathy

Yavanaarasi G [Syncfusion]
Replied On January 17, 2008 10:22 AM UTC

Hi Kathy,

Thank you for your interest in Syncfusion products.

I am not able to figure out a way to accomplish this in the new version.

Our latest versions(v5.2 and Essential Studio 2008 Volume 1) of Essential PDF is a complete rewrite, so the APIs are not compatible with the previous version of Essential PDF. For applications that use all previous versions of Essential PDF, please refer to Syncfusion.Pdf.Legacy.Base.dll and your application should work without any problem.

Here is the sample for your reference with legacy PDF:


Please let me know if you have any other questions.



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

or the page will be automatically redirected to 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