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 Double

DLL

double DLDrawTableRows(int InstanceID, int TableID, double Left, double Top, double Height, int FirstRow, int LastRow);

Parameters

TableIDA TableID returned by the CreateTable function
LeftThe horizontal distance from the origin to the left edge of the table
TopThe vertical distance from the origin to the top of the table The maximum height available to draw the table in
Height
FirstRowThe the number of the first row to draw. Top row is row number 1.
LastRow0 = All remaining rows Non-zero = The number of the final row to set

Return values

0No rows were drawn
Non-zeroThe total height of all the rows that were drawn onto the page.