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 without DataSource

Thread ID:





68353 Sep 19,2007 08:32 AM UTC Jan 20,2009 01:03 PM UTC WinForms 7
Tags: PDF
Kevin Hector
Asked On September 19, 2007 08:32 AM UTC

Hi. Do you have a full sample for using PdfLightTable objects without a DataSource?

I have created a very simple project using the evaluation version of Essential PDF but I am getting a PdfLightTableException ("Can't draw table, because there is not enough space for it."). This is probably because I have misunderstood the handling of layout events.

A full sample showing the correct handling of PdfLightTable layout events (including column spanning) to provide data and styles to table rows would be very useful.

My version is

Many thanks

Kevin Hector
Replied On September 19, 2007 10:32 AM UTC

OK, I no longer get this exception. It appeared to be because cells contained no text.

Melba Winshia [Syncfusion]
Replied On September 25, 2007 10:54 AM UTC

Hi Kevin,

Thank you for the update.

Glad to hear that this issue has been resolved.

Please let me know if you have any other questions.


Dennis van der Stelt
Replied On July 18, 2008 01:33 PM UTC

I'd still like to see a full example of this.
And you guys keep referring to examples here on the forums, but is there a complete listing of these examples somewhere?


Sri Subhashini M [Syncfusion]
Replied On July 22, 2008 12:29 PM UTC

Hi Dennis,

Thank you for your interest in Syncfusion PDF.

1. PdfLightTable layout events Handling

We can customize the table with the help of the layout events. The below events are available to customize the table,

1. BeginPageLayout - This event is raised before layouting has started on a page.
2. EndPageLayout - This event is raised when layouting on a page has finished
3. BeginRowLayout - This event is raised when row layouting has started.
4. EndRowLayout - This event is raised when row layouting has finished.
5. BeginCellLayout - This event is raised when cell layouting has started
6. EndCellLayout - This event is raised when cell layouting has finished.

Please do find the sample from the below specified link and let me know if this helps.

Please refer the user guide for more information about table feature

2. Samples

You can refer the samples from the below specified locations,

My Documents\Syncfusion\EssentialStudio\\Windows\Pdf.Windows\Samples
My Documents\Syncfusion\EssentialStudio\\Web\pdf.web\Samples

Please let me know if you need customized sample according to your requirement.


Replied On January 16, 2009 04:29 AM UTC

What is the difference between the BeginCellLayoutEventHandler and the EndCellLayoutEventHandler?

Is there a way to update the layout after drawing something into a cell? If the graphic I draw are taller than the row, the row does not automatically stretch vertically. Is there a way to accomplish this?

Geetha M [Syncfusion]
Replied On January 19, 2009 01:55 PM UTC

Hi Wick,

I am working on this and will update you tomorrow.


Geetha M [Syncfusion]
Replied On January 20, 2009 01:03 PM UTC

Hi Wick,

Thank you for your patience.

It is not possible to change the bounds of a cell after drawing it. You can get details of the table events from the below documentation link:


Please let me know if you have any questions.



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

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