IgnatiusGo
08-21-2009, 07:39 AM
Sorry, I know this sound stupid, but I never use printer.print before. I tried a single form with a single command button. Then I add this code:
Private Sub Command1_Click()
Printer.Print
Printer.Print "Hello World"
End Sub
I thought it will print a blank line and then a line of "Hello World", then stop right there (which is what I want), however, it does not do much at all when I click the command button (I check the printer queue, it wrote "spooling" but no action on the printer, only when I close the form (which shut it down), the printer reacts. Why is that? Can I just set the printer to print the two line and just stop there?
Private Sub Command1_Click()
Printer.Print
Printer.Print "Hello World"
End Sub
I thought it will print a blank line and then a line of "Hello World", then stop right there (which is what I want), however, it does not do much at all when I click the command button (I check the printer queue, it wrote "spooling" but no action on the printer, only when I close the form (which shut it down), the printer reacts. Why is that? Can I just set the printer to print the two line and just stop there?