DynaPDF.Table.GetNextHeight
---------------------------

Calculates the height of the table.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.Table.GetNextHeight"; Table; MaxHeight ) 

**MBS**( **"DynaPDF.Table.GetNextHeight";** /\* Calculates the height of the table. \*/  
**$Table**; /\* The identifier for the table. \*/   
**$MaxHeight**) /\* Maximum height for the table.e.g. 500 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Table | The identifier for the table. | $Table |
| MaxHeight | Maximum height for the table. | 500 |

### Result

Returns calculated height or error.

### Description

Calculates the height of the table.   
If the parameter MaxHeight is zero, then the full height will be returned. If MaxHeight is greater zero, then the height of the table is calculated that fits into the output height. This is the same height that DrawTable() would produce when drawing the table with the same parameters. This function can be useful if the height of the table must be known before it can be drawn. The function caches the result so that multiple calls with a different max height can be computed fast as possible.  
The function must be called within an open page.  
### See also

- [DynaPDF.Table.GetNextHeightRow](DynaPDFTableGetNextHeightRow.md)
- [DynaPDF.Table.GetNextRow](DynaPDFTableGetNextRow.md)
- [DynaPDF.Table.GetTableHeight](DynaPDFTableGetTableHeight.md)
- [DynaPDF.Table.GetTableWidth](DynaPDFTableGetTableWidth.md)
- [DynaPDF.Table.SetRowHeight](DynaPDFTableSetRowHeight.md)

This function checks for a license.

Created 18th August 2014 , last changed 23th February 2021

  
[DynaPDF.Table.GetFirstRow](DynaPDFTableGetFirstRow.md) - [DynaPDF.Table.GetNextHeightRow](DynaPDFTableGetNextHeightRow.md)

[HTML Version](DynaPDFTableGetNextHeight.shtml)