Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

DynaPDF.Table.Draw

Draws the table on the specified position.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.5 Yes Yes Yes Yes Yes

MBS( "DynaPDF.Table.Draw"; Table; x; y; MaxHeight )

Parameters

Parameter Description Example value
Table The identifier for the table. $Table
x The x position where to draw the table. 100
y The y position where to draw the table. 100
MaxHeight The maximum height to use for the table. 600

Result

Returns height or error.

Description

Draws the table on the specified position.
The x/y-coordinates specify the top left corner of the table. The table flows always from top to bottom.
The function must be executed in a while statement if the parameter MaxHeight is set to a value greater zero:
The function draws the header rows if any and at least one row to avoid an endless loop if the maximum height would be smaller as the first row height.

If the function succeeds the return value is the height of the table that was drawn so that additional contents can be drawn below the table if necessary. If the function fails the return value is -1.

Examples

Loop to draw table and add pages as needed:

Set Variable [$h; Value:300]
Set Variable [$y; Value:200]
Loop
    #Draw something on page
    Set Variable [$r; Value:MBS("DynaPDF.Table.Draw"; $table; 58; $y; $h)]
    Set Variable [$y; Value:$y + $r + 5]
    #Add another page
    Set Variable [$r; Value:MBS("DynaPDF.EndPage"; $pdf)]
    Set Variable [$r; Value:MBS("DynaPDF.AppendPage"; $pdf)]
    Set Variable [$h; Value:580]
    Set Variable [$y; Value:120]
End Loop

See also

Example Databases


DynaPDF.Table.DeleteRows   -   DynaPDF.Table.GetFirstRow

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins