Debenu Quick PDF logo

DrawTableRows

Page layout

Version history

This function was introduced in Quick PDF Library version 7.14.

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.

In Quick PDF Library version 7.18 and earlier the result of this function was always reported in points. From version 7.19 and later the value returned by this function is correctly scaled according to the current co-ordinate system settings as set by the SetMeasurementUnits function.

Syntax

Delphi

function TDebenuPDFLibrary1511.DrawTableRows(TableID: Integer; Left, Top, 
  Height: Double; FirstRow, LastRow: Integer): Double;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DrawTableRows(TableID As Long,
  Left As Double, Top As Double, Height As Double, FirstRow As Long,
  LastRow As Long) As Double

DLL

double DPLDrawTableRows(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
Height The maximum height available to draw the table in
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.

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport