DrawTableRows
Page layout
Description
Draws multiple rows from the specified table onto the selected page and returns the total height of the drawn rows.
Only the number of rows that fit into the specified height will be drawn. Use the
GetTableLastDrawnRow function to determine the row number of the last row.
The value returned by this function is scaled according to the current co-ordinate system settings as set by the SetMeasurementUnits function.
Syntax
Delphi
function TPDFlib.DrawTableRows(TableID: Integer; Left, Top, Height: Double; FirstRow, LastRow: Integer): Double;ActiveX
Function PDFlib::DrawTableRows(TableID As Long, Left As Double, Top As Double, Height As Double, FirstRow As Long, LastRow As Long) As DoubleDLL
double DLDrawTableRows(int InstanceID, int TableID, double Left, double Top, double Height, int FirstRow, int LastRow);Parameters
| TableID | A TableID returned by the CreateTable function |
|---|---|
| Left | The horizontal distance from the origin to the left edge of the table |
| Top | The vertical distance from the origin to the top of the table The maximum height available to draw the table in |
| Height | |
| FirstRow | The the number of the first row to draw. Top row is row number 1. |
| LastRow | 0 = All remaining rows Non-zero = The number of the final row to set |
Return values
| 0 | No rows were drawn |
|---|---|
| Non-zero | The total height of all the rows that were drawn onto the page. |