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

How do I write some text below a table?

Thread ID:





104023 Jun 15,2012 01:10 PM UTC Jun 21,2012 03:51 AM UTC ASP.NET Web Forms (Classic) 3
Tags: PDF
Martin Bischoff
Asked On June 15, 2012 01:10 PM UTC

I'm using a PdfLightTable to render a table, e.g:

    var doc = new Syncfusion.Pdf.PdfDocument();
    var page = doc.Pages.Add();
    var table = new PdfLightTable();
    table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions;
    table.DataSource = GetData(); // returns  a DataTable
    table.Draw(page, 0, 0);

This works fine, but now I'd like to append some text right below the table, and that's where I'm stuck:

- the table can span multiple pages
- to use page.Graphics.DrawString(text, font, brush, x, y) I have to specify the text's position
--> how do I determine the position for the text (the value for parameter 'y') ?

George Livingston [Syncfusion]
Replied On June 18, 2012 05:14 AM UTC

Hi Martin,

Thank you for using Syncfusion Products.

It is possible to determine the position of the text in the PdfLightTable using PdfLayoutResult.

Use the below mentioned code snippet to the get bounds of the table element,

PdfLayoutResult result = table.Draw(page, PointF.Empty, format);

Please find the sample available in the link below to achieve your target,


Please try this and let us know if you have any question.



Martin Bischoff
Replied On June 18, 2012 06:19 AM UTC

Thanks George, that was exactly what I was looking for.

From the samples, this wasn't obvious to me, since each sample only shows exactly one small feature, but not combinations of them.

Best regards,

George Livingston [Syncfusion]
Replied On June 21, 2012 03:51 AM UTC

Hi Martin,

Thank you for your update.

Please find the online sample available in the link below, which consist of combination of the table features.


Please let us know if you have any concerns.




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