Is possible to rotate table -90 degrees without Table overflow

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v11)  /  Is possible to rotate table -90 degrees without Table overflow

DynamicPDF CoreSuite for .NET (v11) Forum

Hi,
I have a requirement to generate Pdf with only table rotate to -90 degrees like header & footer in horizontal and table with data in vertical direction.

Sorry, i am not able to attach sample document. If possible please give me a solution in .net and we have licensed core suite key = "XXXXXXXX"
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

All times are US Eastern Standard time. The time now is 7:53 PM.