Need Printer examples

In this category you can exchange your programming questions and solutions.
Post Reply
notwen
Posts: 2
Joined: Thu Jul 21, 2016 11:46 pm

Need Printer examples

Post: # 1254Post notwen
Mon Aug 15, 2016 5:44 pm

The following code is modified from an example on this forum but, I can`t get printer to print. I get an address error when I run it.  The showmessage displays my printers name OK.
Thanks for your help in advance.

dim p as printer
showmessage p.printers(0)
p.begindoc
  p.canvas.font.size=8
  p.canvas.textout(0,10,"hello world",&hffffff)
p.enddoc

notwen
Posts: 2
Joined: Thu Jul 21, 2016 11:46 pm

Need Printer examples

Post: # 1255Post notwen
Sat Aug 27, 2016 1:36 am

Figured it out.  Needed to update my printer driver.

Post Reply