B
Bob
I am writing a program that will need to redirect an output file (txt with
ascii print codes) to a series of network printers.
based upon a username, I have to determine which of these printers are the
closest to a user, then stream the output of a file to the printer.
this text file contains all the ascii / esc codes to format the job properly
what we do now is use a DOS copy command to copy the file to LPT1.
ultimately, i'm trying to replace this dos scheduled batch file with a
windows service built in .Net.
so here's my question: I can't figure out how to copy a file to LPT1. I'd
rather copy straight to a UNC path like \\myserver\myprinter rather than
having to deal with port mapping.
can someone get me started here? how can i programmatically stream a text
file to a print queue? i essentially need to do the same thing like this:
copy myfile.txt lpt1:
i'd rather be able to
copy myfile.txt \\myserver\myqueue
i have a database that i keep an association of user and the closest printer
( a 1 to 1 mapping). I look up the user, find their network printer (unc
path) and then want to stream the source file to this user.
the source is a folder where output files are generated from a legacy ERP
system. I have to read each one that is placed in a share and send it to the
appropriate print queue.
Help!
ascii print codes) to a series of network printers.
based upon a username, I have to determine which of these printers are the
closest to a user, then stream the output of a file to the printer.
this text file contains all the ascii / esc codes to format the job properly
what we do now is use a DOS copy command to copy the file to LPT1.
ultimately, i'm trying to replace this dos scheduled batch file with a
windows service built in .Net.
so here's my question: I can't figure out how to copy a file to LPT1. I'd
rather copy straight to a UNC path like \\myserver\myprinter rather than
having to deal with port mapping.
can someone get me started here? how can i programmatically stream a text
file to a print queue? i essentially need to do the same thing like this:
copy myfile.txt lpt1:
i'd rather be able to
copy myfile.txt \\myserver\myqueue
i have a database that i keep an association of user and the closest printer
( a 1 to 1 mapping). I look up the user, find their network printer (unc
path) and then want to stream the source file to this user.
the source is a folder where output files are generated from a legacy ERP
system. I have to read each one that is placed in a share and send it to the
appropriate print queue.
Help!