Report.FillColor Property
Access Developer Reference |
You use the FillColor property to specify the color that fills in boxes and circles drawn on reports with the Line and Circle methods. You can also use this property with Visual Basic to create special visual effects on custom reports when you print using a color printer or preview the reports on a color monitor. Read/write Long.
Syntax
expression.FillColor
expression A variable that represents a Report object.
Remarks
You can set this property only in an event procedure specified by a section's OnPrint event property.
The following example uses the Circle method to draw a circle and create a pie slice within the circle. Then it uses the FillColor and FillStyle properties to color the pie slice red. It also draws a line from the upper left to the center of the circle.
You can use the RGB or QBColor functions to set this property. The FillColor property setting has a data type of Long.
Example
To try this example in Microsoft Access, create a new report. Set the OnPrint property of the Detail section to [Event Procedure]. Enter the following code in the report's module, then switch to Print Preview.
Visual Basic for Applications |
---|
|
See Also