Page 1 of 1

Need Printer examples

Posted: Mon Aug 15, 2016 5:44 pm
by notwen
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

Need Printer examples

Posted: Sat Aug 27, 2016 1:36 am
by notwen
Figured it out.  Needed to update my printer driver.