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. Image for the cookie policy date

PdfLightTable without DataSource

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 5.2.0.25

Many thanks

7 Replies

KH Kevin Hector September 19, 2007 10:32 AM UTC

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


MW Melba Winshia Syncfusion Team 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.

Thanks,
Melba


DV Dennis van der Stelt 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?

Thanks
Dennis



SS Sri Subhashini M Syncfusion Team 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.
http://www.syncfusion.com/support/user/uploads/Sample_adbbfba2.zip

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\6.3.0.30\Windows\Pdf.Windows\Samples
My Documents\Syncfusion\EssentialStudio\6.3.0.30\Web\pdf.web\Samples

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

Regards,
Suba




WI Wick 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?



GM Geetha M Syncfusion Team January 19, 2009 01:55 PM UTC

Hi Wick,

I am working on this and will update you tomorrow.

Regards,
Geetha



GM Geetha M Syncfusion Team 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:

http://help.syncfusion.com/ug_71/pdf/TableCustomization.html

Please let me know if you have any questions.

Regards,
Geetha


Loader.
Live Chat Icon For mobile
Up arrow icon