Won't an error come up or something? And it wouldn't print if there were no paper in the printer. Try this though:
That's just a guess.Code:Private Sub CMDPrint_Click() On Error Goto NP Printer.Print data 'whatever you want to print Printer.EndDoc Exit Sub NP: Msgbox "An error has occurred while printing!", 16, "Error: Cancelling Printing..." Printer.KillDoc End Sub
For more informaton, look in your Object Browser for Printer.




Reply With Quote