Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No printer.print method in my printer

Status
Not open for further replies.

LiquidSchwarz

Programmer
Joined
Apr 24, 2003
Messages
9
Location
US
I am experimenting, trying to learn how to print using VB6. For some reason, my Printer class has no print method. Can anyone explain what might be happening?
 
It doesn't show up as a method. When typeing it in, it's not shown under the normal . syntax. It works anyways though. Try typing "printer.print" in lower case and hit enter, and it will automatically convert to "Printer.Print".

Don't forget to use Printer.EndDoc after your print statements to actually get it to print out.

Robert
 
No such luck. I get an error when I do that. Is there a missing reference, perhaps?
 
Rookie tried getting a little too clever...

Don't do this....

With Printer
.print "message"
.EndDoc
End With


"With" doesn't work and screws things up. All better now.

p.s. thank you Vampire for your reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top