Printing Help
- Posted by George Walters <gwalters at sc.rr.com> Feb 09, 2006
- 552 views
I'm trying to open and print to a network printer like this
dosFn = open("IP_192.168.1.52", "w") -- a windows port prtFn = open(args[3], "r") if dosFn !=0 then tmp = gets(prtFn) while not atom(tmp) do if find("+p", tmp) then puts(dosFn, 12) else puts(dosFn,tmp) end if --puts(1, tmp) tmp = gets(prtFn) end while close(dosFn) end if
However the program works fine but prints to a file of that name and not to the port where the printer is attached. What have I done wrong, or can I not do this. I have working routines using win32 but for this application I wanted to print directly to the printer.