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

Table Height

How can I get IPDFTable's height?

I have IPDFTable, created from PDFDocument.
I gave it DataSource (DataTable) and some Style.
But I want to create 3-5 tables on one page, which have different DataSources.
I Publish those tables with interval=20.
PageBreakBehavior = AutoBreakBehavior.FullBreak; - in all tables.

But, I'll get something like this: some distances are too small, and other-too huge!
Cuz, when row is breaked, the row height became = 1rowHeight*xx!
How can I obtain true rowHeight or xx? or Full table height, what'll be perfect?

I need Your answer as soon as it possible!(

PS: Sorry for my bad English :)

1 Reply

AD Administrator Syncfusion Team December 13, 2006 08:44 PM UTC

Hi Alex,

It is possible to get the full table height. When a table is published on the document it will return its won height and width size, then we can get those values by storing it to variable.
Could you please refer the following line.

Code Snippet [C#]
----------------------
SizeF tableOne = table.Publish(tableLocation,pdfDoc.LastPage);

Here is the sample for your reference.
MultiTable.zip


Please take a look at this and let me know if you have any other queries.

Regards,
Prakash.


Loader.
Live Chat Icon For mobile
Up arrow icon