Report.
You can use the DrawMode property to specify how the pen (the color used in drawing) interacts with existing background colors on the report when the Line, Circle, or PSet method is used to draw on a report when printing.
The DrawMode property uses the following settings.
Setting | Description |
1 | Black pen. |
2 | Inverse of setting 15 (NotMergePen). |
3 | Combination of the colors common to the background color and the inverse of the pen (MaskNotPen). |
4 | Inverse of setting 13 (NotCopyPen). |
5 | Combination of the colors common to both the pen and the inverse of the display (MaskPenNot). |
6 | Inverse of the display color (Invert). |
7 | Combination of the colors in the pen and in the display color, but not in both (XorPen). |
8 | Inverse of setting 9 (NotMaskPen). |
9 | Combination of the colors common to both the pen and the display (MaskPen). |
10 | Inverse of setting 7 (NotXorPen). |
11 | No operation output remains unchanged. In effect, this setting turns drawing off (Nop). |
12 | Combination of the display color and the inverse of the pen color (MergeNotPen). |
13 | (Default) Color specified by the ForeColor property (CopyPen). |
14 | Combination of the pen color and the inverse of the display color (MergePenNot). |
15 | Combination of the pen color and the display color (MergePen). |
16 | White pen. |
The DrawMode property setting is an Integer data type value.
You can set the DrawMode property only in a macro or a Visual Basic event procedure specified by a sections OnPrint property setting.
Use this property to produce visual effects when drawing on a report. Microsoft Access compares each pixel in the draw pattern to the corresponding pixel in the existing background to determine how the drawing is displayed on the report. For example, setting 7 uses the Xor operator to combine a draw-pattern pixel with a background pixel.
BackColor Property, BackStyle Property, Circle Method, DrawStyle Property, DrawWidth Property, Event Properties, FillColor Property, FillStyle Property, ForeColor Property, Line Method, PSet Method.