ezwebmaster
IS-IT--Management
Hello all,
I have a rather strange problem using Visual Basic to print out images in MS Access 2003. I have a form which displays a large image. There are two buttons at the bottom (Print in BW and Print in Color). The user clicks the Color button to print to our KODAK 5500 AIO color printer. The code for this routine is:
We used to have a different color printer, and it worked fine. But now that we've switched to our Kodak one, the PrintOut method only prints in black and white.
The really strange thing is that you can hit the Print button under File/Print on the MS Access toolbar and it DOES print in color. So the PrintOut method itself seems to be the problem.
I have tried inserting the following code:
Application.Printer.ColorMode = acPRCMColor
but it seems to have no effect. Is there another way to force PrintOut to use color instead of bw? Maybe it is a driver problem?
Any guidance you can give me is much appreciated!
I have a rather strange problem using Visual Basic to print out images in MS Access 2003. I have a form which displays a large image. There are two buttons at the bottom (Print in BW and Print in Color). The user clicks the Color button to print to our KODAK 5500 AIO color printer. The code for this routine is:
Code:
Private Sub color_Click()
Dim strDefaultPrinter As String
strDefaultPrinter = Application.Printer.DeviceName
' switch to our color printer:
Set Application.Printer = Application.Printers("KODAK 5500 AiO")
DoCmd.PrintOut , , , , 1, True
'switch back to the default printer
Set Application.Printer = Application.Printers(strDefaultPrinter)
End Sub
The really strange thing is that you can hit the Print button under File/Print on the MS Access toolbar and it DOES print in color. So the PrintOut method itself seems to be the problem.
I have tried inserting the following code:
Application.Printer.ColorMode = acPRCMColor
but it seems to have no effect. Is there another way to force PrintOut to use color instead of bw? Maybe it is a driver problem?
Any guidance you can give me is much appreciated!