[HELP] Color print button

JaviT

New member
Local time
Yesterday, 22:17
Joined
Aug 28, 2017
Messages
2
Thanks for reading me

I am trying to incorporate a button that prints in color the registration of the form in which it is

Everything is fine, but I still need it to be colored, it only prints in black and white

The code I have is this:
Code:
Dim ID As Long
Dim record As Long

ID = record

DoCmd.PrintOut acSelection, ID, ID

Exit_cmd_PDF_Click:
Exit Sub

End Sub

Can anybody help me?
 
print control is done on the printer side. Set the printer to print in color.
or
make a report, set the report and printer to print in color.
 
For colour printing, try this in the ReportHeader_Print event:

Code:
Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer)
    Me.Printer.ColorMode = acPRCMColor
End Sub

NOTE:
Alternatively the following code should make it in print in black & white

Code:
Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer)
    Me.Printer.ColorMode = acPRCMMonochrome
End Sub

HTH
 
For colour printing, try this in the ReportHeader_Print event:

Code:
Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer)
    Me.Printer.ColorMode = acPRCMColor
End Sub
NOTE:
Alternatively the following code should make it in print in black & white

Code:
Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer)
    Me.Printer.ColorMode = acPRCMMonochrome
End Sub
HTH

Thank you very much, now I try it but from what I see I have to create a report and I can not do it on my form, right?
 
You should be sure to note that ridders is talking about printing a Report, here, not a Form, which is how it should be! Forms are for viewing/interacting with data...Reports are for printing.

With the Form selected, or in Design View, you can go into the area where you open files, etc (don't know the Access version you're running) and select Save As then use the bottom dropdown and select Report, and it will create one that looks like the Form.

Linq ;0)>
 
As missinglinq said, I assumed you were printing a report

Normally you wouldn't print a form
However, you could create a report that looks just like your form & then print that
 

Users who are viewing this thread

Back
Top Bottom