User`s guide

mlreportgen.dom.TableColSpecGroup class
12-289
Id — ID for document element
string
A session-unique ID is generated as part of document element creation. You can specify
an ID to replace the generated ID.
Span — Number of adjacent table columns to which this document element applies
number of adjacent table columns
If this property is not specified (its value is []), the value is assumed to be 1.
Data Types: double
Style — Format specification
array of format objects
Format objects that specify the format of a document element.
Tag — Tag for document element
string
Tag for document element, specified as a string.
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Examples
Make the First Column Green and Remaining Columns Red
import mlreportgen.dom.*
doc = Document('mydoc', 'docx');
append(doc, 'Table');
grps(1) = TableColSpecGroup;
grps(1).Style = {Color('red')};
specs(1) = TableColSpec;
specs(1).Style = {Color('green')};
grps(1).ColSpecs = specs;