Posted by a ceTe Software moderator
Hi,
You can rotate most page elements by setting the Angle property. Using this property, you can rotate only the content you need. 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);
Thanks,
ceTe Software Support Team