Printing to a printer

new topic     » topic index » view thread      » older message » newer message

I'm trying to print a sequence (using printf, pretty print, print)
to a printer (as opposed to standard output or a file).

The relevant code is:
============================================================
        result = getPrinter()
        if length(result) then
    	   dummy = startDoc( "job" )
	   dummy = startPage()
           pretty_print(Printer, kanji, {1,3,1,78,"%x"})
           -- or print, or puts, or whatever
	   dummy = endPage()
	   dummy =  endDoc()
	   releasePrinter()
  	end if
============================================================
This brings up a printer dialogue, at which I have tried selecting
different printers, or leaving it at the default printer. So far, so good.
The output is created, and it appears as I would expect it to.

Only thing is, despite the printer ejecting a blank page, the output 
doesn't go to the printer ... it goes to a DOS window ("standard output")
as if I had said print(1, kanji).

Any ideas?

Craig

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu