Posted by a ceTe Software moderator
Hi,
You can rotate most page elements by setting the Angle property. Here is an example of rotating a Table2 page element:
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
//Create TableA...................
Table2 tableA = new Table2(0, 0, 200, 600);
// Add columns to the table
tableA.Columns.Add(100);
tableA.Columns.Add(100);
// Add rows to the table and add cells to the rows
Row2 row1 = tableA.Rows.Add();
Cell2 cellR1C1 = row1.Cells.Add("Item 1");
Cell2 cellR1C2 = row1.Cells.Add("Item 2");
//Rotate Table by setting Angle to it.
tableA.Angle = 90;
// Add the table to the page
page.Elements.Add(tableA);
// Save the PDF
string pdfFilePath = @"C:\Temp\MyTable.pdf";
document.Draw(pdfFilePath);
Please be careful not to share licensing information on a Forum post. Your license key is confidential, and should be treated as such.
Thanks,
ceTe Software Support Team