Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFTableMBS class.

Previous items

DynaPDFTableMBS.SetCellPicture(Row as Integer, Column as Integer, ForeGround as boolean, HAlign as Integer, VAlign as Integer, Width as double, Height as Double, Pic as Picture) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 20.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets cell image with given picture.
Example
dim Pic as picture // your picture from database maybe?
dim w as Double = 300 // destination size
dim h as Double = 200
dim row as Integer
dim column as Integer

dim table as DynaPDFTableMBS // your table

call table.SetCellPicture(row, column, true, table.kcoCenter, table.kcoCenter, w, h, Pic)

Returns true on success.

DynaPDFTableMBS.SetCellSpacing(Row as Integer, Column as Integer, left as Double, top as Double, right as Double, bottom as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the cell spacing of the table, a row or cells.

Default is zero.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Some examples using this method:

DynaPDFTableMBS.SetCellTable(Row as Integer, Column as Integer, HAlign as Integer, VAlign as Integer, SubTable as DynaPDFTableMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function inserts a sub table into the specfied cell.

A sub table is always a foreground object that has a strong width and height. That means, if the cell is not large enough then it will be expanded.
Note that the function creates no copy of the table. Do not delete the sub table when it is used by another table.
In programming languages which use reference counting like Xojo, it is important to delete the tables in right order. Delete first the tables which contain references to sub tables. Finally, delete the sub tables.

If the function succeeds the return value is true. If the function fails the return value is false.
See dynapdf_help.pdf for details.

See also SetCellTable function in DynaPDF manual.

DynaPDFTableMBS.SetCellTemplate(Row as Integer, Column as Integer, ForeGround as boolean, HAlign as Integer, VAlign as Integer, TmplHandle as Integer, Width as Double = 0, Height as Double = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function inserts a template into the specified cell.

See dynapdf_help.pdf for details.

Some examples using this method:

See also SetCellTemplate function in DynaPDF manual.

DynaPDFTableMBS.SetCellText(Row as Integer, Column as Integer, HTextAlign as Integer, VAlign as Integer, text as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the text of a cell.

Use DynaPDFMBS.ktaLeft and similar text align constants for HAlign.
But use DynaPDFTableMBS.kcoCenter and similar cell orientation constants for Valign.

Some examples using this method:

See also SetCellText function in DynaPDF manual.

DynaPDFTableMBS.SetCellTextAnsi(Row as Integer, Column as Integer, HTextAlign as Integer, VAlign as Integer, text as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the text of a cell with ANSI text.

Use DynaPDFMBS.ktaLeft and similar text align constants for HAlign.
But use DynaPDFTableMBS.kcoCenter and similar cell orientation constants for Valign.

See also SetCellText function in DynaPDF manual.

DynaPDFTableMBS.SetFlags(Row as Integer, Column as Integer, Flags as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the flags for a cell.
Example

dim table as DynaPDFTableMBS // your table

// mark this row as being a header row, so it's repeated on all pages
call table.SetFlags(rowNum, 0, table.ktfHeaderRow)

If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Some examples using this method:

See also SetFlags function in DynaPDF manual.

DynaPDFTableMBS.SetFont(Row as Integer, Column as Integer, name as string, Style as Integer = 0, Embed as Boolean = true, CodePage as Integer = &h27) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the font of the table, a row or cells.
Example
dim tbl as DynaPDFTableMBS // your table

// set font for all cells
call tbl.SetFont -1, -1, "Helvetica", pdf.kfsNone, true, pdf.kcpUnicode
// set bold font for a special cell
call tbl.SetFont rowNum, 2, "Helvetica", pdf.kfsBold, true, pdf.kcpUnicode

Default is Helvetica, Code page 1252, Embed false.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

See also SetFont function in DynaPDF manual.

DynaPDFTableMBS.SetFontAnsi(Row as Integer, Column as Integer, name as string, Style as Integer = 0, Embed as Boolean = true, CodePage as Integer = &h27) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the font of the table, a row or cells.

Default is Helvetica, Code page 1252, Embed false.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

See also SetFont function in DynaPDF manual.

DynaPDFTableMBS.SetFontSelMode(Row as Integer, Column as Integer, value as Int32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the font selection mode of the table, a row or cells.

Default is ksmFamilyName.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

See also SetFontSelMode function in DynaPDF manual.

DynaPDFTableMBS.SetFontSize(Row as Integer, Column as Integer, size as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the font size of the table, a row or cells.

Default is 10.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

See also SetFontSize function in DynaPDF manual.

DynaPDFTableMBS.SetGridHorizontalColor(channels() as Integer, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the horizontal grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

Some examples using this method:

DynaPDFTableMBS.SetGridHorizontalColor(paramarray channels as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the horizontal grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

DynaPDFTableMBS.SetGridHorizontalColorFloat(channels() as Double, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the horizontal grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetGridHorizontalColorFloat(paramarray channels as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the horizontal grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetGridHorizontalColorValue(TPDFColorSpace as Integer, ColorValue as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the horizontal grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a color space and a matching color value.
For example kcsDeviceRGB and RGB(r,g,b), kcsDeviceCMYK and CMYK(c,m,y,k) or kcsDeviceGray with gray color.

DynaPDFTableMBS.SetGridVerticalColor(channels() as Integer, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the vertical grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

Some examples using this method:

DynaPDFTableMBS.SetGridVerticalColor(paramarray channels as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the vertical grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

DynaPDFTableMBS.SetGridVerticalColorFloat(channels() as Double, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the vertical grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetGridVerticalColorFloat(paramarray channels as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the vertical grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetGridVerticalColorValue(TPDFColorSpace as Integer, ColorValue as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the vertical grid color.

Default is black.

Pass a color space and a matching color value.
For example kcsDeviceRGB and RGB(r,g,b), kcsDeviceCMYK and CMYK(c,m,y,k) or kcsDeviceGray with gray color.

DynaPDFTableMBS.SetGridWidth(h as Double, v as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the grid width.

Default is 0.

See also SetGridWidth function in DynaPDF manual.

DynaPDFTableMBS.SetImageColor(Row as Integer, Column as Integer, channels() as Integer, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the image color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

DynaPDFTableMBS.SetImageColor(Row as Integer, Column as Integer, paramarray channels as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the image color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

DynaPDFTableMBS.SetImageColorFloat(Row as Integer, Column as Integer, channels() as Double, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the image color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetImageColorFloat(Row as Integer, Column as Integer, paramarray channels as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the image color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetImageColorValue(Row as Integer, Column as Integer, TPDFColorSpace as Integer, ColorValue as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the image color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a color space and a matching color value.
For example kcsDeviceRGB and RGB(r,g,b), kcsDeviceCMYK and CMYK(c,m,y,k) or kcsDeviceGray with gray color.

DynaPDFTableMBS.SetPDF(pdf as DynaPDFMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the target PDF for this table.

Some examples using this method:

DynaPDFTableMBS.SetRowHeight(Row as Integer, value as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the row height of a row.

See also SetRowHeight function in DynaPDF manual.

DynaPDFTableMBS.SetTableWidth(Value as single, AdjustType as Integer, MinColWidth as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The function changes the width of the table.

At least one column must be modified when the width will be changed. The parameter AdjustType specifies how the column width should be modified. If the new width is larger, then the difference can be added to the left or right column, or all columns can get a unique width (TableWidth / NumColumns). The parameter MinColWidth is ignored in this case.
If the new width is smaller then the difference must be subtracted from the columns. The parameter MinColWidth specifies in this case the minimum width of columns that must be adjusted. It is only used if AdjustType is not set to kcoaUniqueWidth. The column widths are adjusted starting from the left or right side as specified. If the width of the first column is not large enough to subtract the difference, then the minimum column width is set to the column. This adjustment continues until the gap is zero. If the new table width is smaller as MinColWidth * NumColumns then the widths of the remaining columns will be set to zero. Such cases should be avoided since the column widths must be adjusted again when the table is drawn.

kcoaUniqueWidthSet the column widths to TableWidth / NumColumns
kcoaAdjLeftAdjust the widths starting from the left side
kcoaAdjRightAdjust the widths starting from the right side

See dynapdf_help manual for details.
Returns true on success or false on failure.

See also SetTableWidth function in DynaPDF manual.

DynaPDFTableMBS.SetTextColor(Row as Integer, Column as Integer, channels() as Integer, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the text color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

DynaPDFTableMBS.SetTextColor(Row as Integer, Column as Integer, paramarray channels as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the text color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass an integer for each channel with 0 to 255.

See also:

DynaPDFTableMBS.SetTextColorFloat(Row as Integer, Column as Integer, channels() as Double, ExtColorSpace as Integer = 0, ColorSpaceHandle as Integer = 0) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the text color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetTextColorFloat(Row as Integer, Column as Integer, paramarray channels as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the text color of the table, a row or cells.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a double value for each channel with range 0.0 to 1.0.

See also:

DynaPDFTableMBS.SetTextColorValue(Row as Integer, Column as Integer, TPDFColorSpace as Integer, ColorValue as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 12.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the horizontal grid color.

Default is black.
If Row is -1, all rows are modified. If Column is -1, all columns are modified.

Pass a color space and a matching color value.
For example kcsDeviceRGB and RGB(r,g,b), kcsDeviceCMYK and CMYK(c,m,y,k) or kcsDeviceGray with gray color.

Previous items

The items on this page are in the following plugins: MBS DynaPDF Plugin.


The biggest plugin in space...