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

PdfLightTable get/calculate Table height on page

Thread ID:





125264 Aug 3,2016 03:23 PM UTC Aug 4,2016 05:12 AM UTC ASP.NET Web Forms 1
Tags: PDF
Bruce Stevenson
Asked On August 3, 2016 03:23 PM UTC

I am working with the PdfLightTable to produce an Order Summary, I know, or can calculate the heights of the other lines on the page, but I have an items table that I need to find the height of.  I do not see a property that will return the printed height.
Can you please aid me with this issue?

Attached is a simple example produced using the your tools.

Thankyou in advance for your support;


Attachment: displayPDF_7f4206e1.zip

Chinnu Muniyappan [Syncfusion]
Replied On August 4, 2016 05:12 AM UTC

Hi Bruce, 

Thank you for contacting Syncfusion support. 

PdfLayoutResult helps to find the light table heights and the page rendering bounds. Please find the below code snippet and KB documentation for more details. 

1.Current table height 
            //Draws PdfLightTable 
            PdfLayoutResult result = pdfLightTable.Draw(page, new PointF(10, 10)); 
            //Get the table height 
            float tableHeight = result.Bounds.Height; 
2.Page rendering height: 
            //Get the current page rendering height 
            float height = result.Bounds.Bottom; 

Please let us know if you have any concern. 



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

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