Draws a table, or a portion thereof, on the canvas.
Table is an instance of the PdfTable object
creatable via PdfDocument's CreateTable method. Only
rows that fully fit on the canvas are displayed. When the next
row cannot be fit on the canvas, the process stops.
Param is a PdfParam object or parameter string specifying
the following table drawing parameters:
- X, Y (required): the coordinates of the upper-left
corner of the table on the canvas.
- MaxHeight (optional): the maximum height
of the table on the canvas. By default, it is set to the Y value
(the distance between the top of the table and bottom of the canvas).
- RowFrom - RowTo, RowFrom1 - RowTo1, etc. (optional) -
row ranges to display.
The method returns the index of the last row it could fully fit on the canvas.
If the method returns 0 it means even the first row alone could not fit
and nothing was drawn.
Usage:
objPage.Canvas.DrawTable( Table, "x=10; y=200; RowFrom=1; RowTo=20" );
For more information on the PdfTable object, see
Chapter 7 - Tables.
For the full description of the DrawTable method, see
Section 7.3 - Table Rendering.