printbgcolor

Enables the form to be printed with a specific background color on a color printer.

This color can be the same as or different from the background color shown on the screen. On black and white printers, grayscaling is used.

See also: printlabelbgcolor, printfontcolor, printlabelfontcolor.

Syntax

   <printbgcolor>color</printbgcolor>
Table 1. printbgcolor parameters
Parameter Type Description
color special The color may be expressed in any of the following formats:
  • Comma-separated RGB values. For example: 192,192,192
  • Hexadecimal-based RGB values. For example: #336699
  • Color name. For example: blue

Available in

box, button, check, checkgroup, combobox, field, label, list, popup, radio, radiogroup, slider, page global, form global

Examples

These samples both set the printed background color to forest green.

   <printbgcolor>forest green</printbgcolor>
   <printbgcolor>34,139,34</printbgcolor>
   <printbgcolor>#228B22</printbgcolor>

Usage details

  1. Defaults behave as follows:
    • Form: white.
    • Page: the page or form global setting or default (white).
    • Item: when no printbgcolor is specified, the printbgcolor default is derived from the item's specified or default bgcolor.