ComponentOne VSView Reporting Edition
ForeColor Property

Returns or sets the Field's foreground color.

Syntax

field.ForeColor[ = colorref& ]

Remarks

Use the ForeColor property to specify the color for text in a field. You can use this property to make fields easy to read or to convey a special meaning. For example, you can change the color of the text in the UnitsInStock field when its value falls below the reorder level. For example:

Dim strOnPrint$

strOnPrint = "If UnitsInStock < ReorderLevel Then " & _

             "    UnitsInStock.ForeColor = vbRed " & _

             "Else" & _

             "    UnitsInStock.ForeColor = vbBlack"

vsr.Sections(vsrDetail).OnPrint = strOnPrint

Data Type

Color

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback