1. how to print
- Posted by mark <marktio at hotmail.com> Jan 26, 2007
- 570 views
I am trying to print to the printer the code as integer printer printer = open ("lpt1","wb") puts(printer,"TESTING") close (printer) actually i take these code from the Forum But nothing was printed Any help? Thanks you
2. Re: how to print
- Posted by Gary Shingles <eu at 531pi.co.nz> Jan 26, 2007
- 590 views
mark wrote: > I am trying to print to the printer > the code as > > integer printer > printer = open ("lpt1","wb") > puts(printer,"TESTING") > close (printer) > > actually i take these code from the Forum > But nothing was printed > Any help? > Thanks you Hi Mark You might just need to send a linefeed to get the printer to print, eg: puts(printer,"TESTING" & #0A) -- linefeed A printer won't print anything until it sees a line feed or a form feed (#0C). It makes sense, because what if your next line is puts(printer, " TESTING 1 2 3") and the printer has already started printing? I'm not sure what the reason is for not printing when it sees the end of the file though (as per your example). Gary
3. Re: how to print
- Posted by mark <marktio at hotmail.com> Jan 26, 2007
- 603 views
Hi Gary Thanks for the suggestion But it does not work with OA I find out if use form feed seems to print ie puts(printer,FORMFEED) where FORMFEED is declared beforehand as CONSTANT FORMFEED=12
4. Re: how to print
- Posted by Gary Shingles <eu at 531pi.co.nz> Jan 26, 2007
- 537 views
mark wrote: > > Hi Gary > Thanks for the suggestion > But it does not work with OA > > I find out if use form feed seems to print > ie puts(printer,FORMFEED) > where FORMFEED is declared beforehand > as CONSTANT FORMFEED=12 YEs, I think it will depend on how the printer is set up too. #0A (a zero BTW, #0A = 10 dec, it looks like an O above..) works with my HP LJ 2100 Gary