使用資料來源色彩 |
您可以針對範本上支援色彩的文字方塊、條碼、線條和形狀物件的任何屬性使用從資料來源選取的色彩。此功能對於動態變更物件的色彩很有用。
請參考以下範例:
您的公司想要根據會員類型來製作不同色彩的健身房會員卡。如果會員資訊 (包括會員色彩) 儲存在連線的資料庫中,則可以在卡片上設定一個彩色條紋,讓其可以動態變更為每種會員類型對應的色彩。
若要執行此動作,可以在範本上新增一個矩形物件作為條紋,然後設定條紋的框線和填滿色彩,以使用連線的資料庫中對應的「色彩」資料庫欄位所設定的色彩。然後,在列印文件時,即會列印與俱樂部會員的會員類型相符的色彩。
使用「資料來源色彩」對話方塊可以設定此功能。若要存取此對話方塊,請按一下所需屬性的「色彩 」選項,以開啟色彩選取器,然後在色彩選取器的「標準」或「自訂」索引標籤上按一下「透過資料來源設定」。
雖然文件只能與包含色彩值的資料庫建立連線,但您可以將多個物件連線至該資料庫,以便用相同的色彩列印不同的物件。
下表列出了支援的色彩及其十六進位值。
Color | 值 | Color | 值 | |||
---|---|---|---|---|---|---|
AliceBlue | #F0F8FF | LightSalmon | #FFA07A | |||
AntiqueWhite | #FAEBD7 | LightSeaGreen | #20B2AA | |||
Aqua | #00FFFF | LightSkyBlue | #87CEFA | |||
Aquamarine | #7FFFD4 | LightSlateGray | #778899 | |||
Azure | #F0FFFF | LightSteelBlue | #B0C4DE | |||
Beige | #F5F5DC | LightYellow | #FFFFE0 | |||
Bisque | #FFE4C4 | Lime | #00FF00 | |||
Black | #000000 | LimeGreen | #32CD32 | |||
BlanchedAlmond | #FFEBCD | Linen | #FAF0E6 | |||
Blue | #0000FF | Magenta | #FF00FF | |||
BlueViolet | #8A2BE2 | Maroon | #800000 | |||
Brown | #A52A2A | MediumAquamarine | #66CDAA | |||
BurlyWood | #DEB887 | MediumBlue | #0000CD | |||
CadetBlue | #5F9EA0 | MediumOrchid | #BA55D3 | |||
Chartreuse | #7FFF00 | MediumPurple | #9370DB | |||
Chocolate | #D2691E | MediumSeaGreen | #3CB371 | |||
Coral | #FF7F50 | MediumSlateBlue | #7B68EE | |||
CornflowerBlue | #6495ED | MediumSpringGreen | #00FA9A | |||
Cornsilk | #FFF8DC | MediumTurquoise | #48D1CC | |||
Crimson | #DC143C | MediumVioletRed | #C71585 | |||
Cyan | #00FFFF | MidnightBlue | #191970 | |||
DarkBlue | #00008B | MintCream | #F5FFFA | |||
DarkCyan | #008B8B | MistyRose | #FFE4E1 | |||
DarkGoldenrod | #B8860B | Moccasin | #FFE4B5 | |||
DarkGray | #A9A9A9 | NavajoWhite | #FFDEAD | |||
DarkGreen | #006400 | Navy | #000080 | |||
DarkKhaki | #BDB76B | OldLace | #FDF5E6 | |||
DarkMagenta | #8B008B | Olive | #808000 | |||
DarkOliveGreen | #556B2F | OliveDrab | #6B8E23 | |||
DarkOrange | #FF8C00 | Orange | #FFA500 | |||
DarkOrchid | #9932CC | OrangeRed | #FF4500 | |||
DarkRed | #8B0000 | Orchid | #DA70D6 | |||
DarkSalmon | #E9967A | PaleGoldenrod | #EEE8AA | |||
DarkSeaGreen | #8FBC8F | PaleGreen | #98FB98 | |||
DarkSlateBlue | #483D8B | PaleTurquoise | #AFEEEE | |||
DarkSlateGray | #2F4F4F | PaleVioletRed | #DB7093 | |||
DarkTurquoise | #00CED1 | PapayaWhip | #FFEFD5 | |||
DarkViolet | #9400D3 | PeachPuff | #FFDAB9 | |||
DeepPink | #FF1493 | Peru | #CD853F | |||
DeepSkyBlue | #00BFFF | Pink | #FFC0CB | |||
DimGray | #696969 | Plum | #DDA0DD | |||
DodgerBlue | #1E90FF | PowderBlue | #B0E0E6 | |||
FireBrick | #B22222 | Purple | #800080 | |||
FloralWhite | #FFFAF0 | Red | #FF0000 | |||
ForestGreen | #228B22 | RosyBrown | #BC8F8F | |||
Fuchsia | #FF00FF | RoyalBlue | #4169E1 | |||
Gainsboro | #DCDCDC | SaddleBrown | #8B4513 | |||
GhostWhite | #F8F8FF | Salmon | #FA8072 | |||
Gold | #FFD700 | SandyBrown | #F4A460 | |||
Goldenrod | #DAA520 | SeaGreen | #2E8B57 | |||
Gray | #808080 | Seashell | #FFF5EE | |||
Green | #008000 | Sienna | #A0522D | |||
GreenYellow | #ADFF2F | Silver | #C0C0C0 | |||
Honeydew | #F0FFF0 | SkyBlue | #87CEEB | |||
HotPink | #FF69B4 | SlateBlue | #6A5ACD | |||
IndianRed | #CD5C5C | SlateGray | #708090 | |||
Indigo | #4B0082 | Snow | #FFFAFA | |||
Ivory | #FFFFF0 | SpringGreen | #00FF7F | |||
Khaki | #F0E68C | SteelBlue | #4682B4 | |||
Lavender | #E6E6FA | Tan | #D2B48C | |||
LavenderBlush | #FFF0F5 | Teal | #008080 | |||
LawnGreen | #7CFC00 | Thistle | #D8BFD8 | |||
LemonChiffon | #FFFACD | Tomato | #FF6347 | |||
LightBlue | #ADD8E6 | Turquoise | #40E0D0 | |||
LightCoral | #F08080 | Violet | #EE82EE | |||
LightCyan | #E0FFFF | Wheat | #F5DEB3 | |||
LightGoldenrodYellow | #FAFAD2 | White | #FFFFFF | |||
LightGray | #D3D3D3 | WhiteSmoke | #F5F5F5 | |||
LightGreen | #90EE90 | Yellow | #FFFF00 | |||
LightPink | #FFB6C1 | YellowGreen | #9ACD32 |