The theme used to render the report table.

Usage

Set_Property(OleCtrlEntId, "OLE.Theme", OptionValue)

Values

OptionValue can be set to one of the following valid options:

ValueDescription
FlatA minimalist flat theme with no dividers between column headers.
ExplorerA theme based on the look of Windows Explorer.
Office2003A theme based on the look of Office 2003.
Office2007BlueThe blue theme utilized in Office 2007
Office2007BlackThe black theme utilized in Office 2007
Office2007SilverThe silver theme utilized in Office 2007
Office2007AquaThe theme utilized in the beta releases of Office 2007
Office2010BlueThe blue theme utilized in Office 2010
Office2010BlackThe black theme utilized in Office 2010
Office2010SilverThe silver theme utilized in Office 2010
ShadedThe default theme with subtly shaded column headers.
Windows7A theme based on the look of Windows 7

Default: Shaded

Remarks

The Theme property sets the look of the control, mostly affecting the way the column headers are rendered though it can affect the colors used for the grid lines and group rows as well. Simply set one of the aforementioned options and you're done. You can pass any abbreviation so long as it can be reasonably recognized as unique. If the property does recognize the given option, it defaults to "Shaded". For example, "07" will be recognized as "Office2007Blue", but "Office" or "Black" will not because they are too ambiguous in and of themselves.

Example

// Set the theme to Flat
Set_Property(@Window:".OLE_REPORTTABLE", "OLE.Theme", "Flat")

// Set the theme to Office 2010 Silver using an abbreviation that is recognizable
Set_Property(@Window:".OLE_REPORTTABLE", "OLE.Theme", "10Sil")
  • No labels