I have an access program that is used by multiple users but when one
of the users prints the reports they print with grey background. The
others all print with the white background as designed.
Hope this will help. It cured my problem.
Chuck
Reply to one of my questions in a VB forum
From: "Steve Gerrard" :
You have not set the color to white, you've set it to a
system colour. (Because the color starts with &H8) Therefore the colour will
depend on what the user has their system colours set to. On your system this
may be white, but you can't expect it to be on anyone else's
PC.
Click on BackColor in Properties Window brings up another window with two
tabs.
One has System with choices of colors by name ie; Button Face. The other tab
is Palette with colored squares, no nomenclature. Right click on any of the
bottom white squares brings up Define Color window.
I can pick a white square in the palette, but is this what you are telling me
to do?
In any case, the color will be displayed as a hex value. Manually enter any
hex number into the input control. ie &H00000005& appears to be white, but
is
that just my machine? From the Palette, &H00FFFFFF& also appears to be white.
I suspect that the latter is more likely to not to be a *system* color, but
how
do I know?
You can set Color Profiles in the Control Panel, but this has got to be
machine
specific.
If you look a little closer, you will see that the system colors are a little
different. For instance, Window Background is &H80000005&, not &H00000005&.
The 8 at the beginning is important. That is what signals that it is a system
color. With XP standard colors, Active Title Bar Text is also white, but its
code is &H80000009&, which is different from Window Background (a 9, not a 5).
Any of the colors from the System tab will begin with &H8..., and that 8 will
mean they are system colors. At run time, they will be whatever color has
currently been set for the color of Window Background, Active Title Bar Text,
and so on.
Palette colors, on the other hand, will begin with &H00. They are coded as
red-green-blue, so &H00FFFFFF& means:
00 = palette color, not system color; FF = red value is 255 (the max); FF =
green value is 255; FF = blue value is 255. When all three color guns fire at
max, you get white. Other colors are made by varying the amount of red, green,
and blue. You can pick any color you like using the color palette tab and
custom
colors.
You can also assign the colors in code, using constants for the system colors
(vbWindowBackground, vbActiveTitleBarText, etc.), or the RGB() function for any
custom color, i.e. RGB(255,255,255) for white.