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

PdfTextAlignment and PdfVerticalAlignment don‘t work

Thread ID:

Created:

Updated:

Platform:

Replies:

93720 Mar 31,2010 01:50 AM UTC Apr 1,2010 10:05 AM UTC Silverlight 1
loading
Tags: PDF
WASPCN
Asked On March 31, 2010 01:50 AM UTC

My test code:

PdfDocument pdfDoc = new PdfDocument();
PdfPage page2 = pdfDoc.Pages.Add();

// Create a new grid model.
PdfGrid grid2 = new PdfGrid();

// Add three Columns to the PdfGrid.
grid2.Columns.Add(3);

// Set Width for first column.
grid2.Columns[2].Width = 150f;
// Set the content format for the first column.
grid2.Columns[2].Format = new PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle);

// Add Header to the grid.
PdfGridRow[] headerRow = grid2.Headers.Add(1);
headerRow[0].Cells[0].Value = "Employee ID";
headerRow[0].Cells[1].Value = "Employee Name";
headerRow[0].Cells[2].Value = "Salary";

// Add Rows to the grid.
PdfGridRow row = grid2.Rows.Add();
row.Cells[0].Value = "E01";
row.Cells[1].Value = "Clay";
row.Cells[2].Value = "$10,000";

// Draw the grid in a PDF document.
grid2.Draw(page2, System.Drawing.PointF.Empty);

but PdfTextAlignment and PdfVerticalAlignment don‘t work

Angappan G [Syncfusion]
Replied On April 1, 2010 10:05 AM UTC

Hi WASPCN,

Thank you for your interest in Syncfusion products.

We were able to reproduce the mentioned issue and we suspect that this could be a defect.

Could you please report these issues through Direct Trac Developer Support Systemhttps://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.

Please let us know if you have any other questions.

Regards,
Angappan.

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

;