Does anybody know how to print to a network port instead of LPT1 or COM ports? We need to have the ability to print to a network printer by specifying the port. Right now we can programatically open LPT1 and spool a file to it but I tried the same thing to a network printer, it does not work. To make this simple, if the following DOS commands work, we should be set to translate it to our C++ program.
for LPT 1 these commands work:
copy <filename> LPT1
or
type <filename> > LPT1
If these commands work for a network port, instead of LPT 1, we should be set. I tried adding a network printer port using Microsoft TCP/IP Printing and use the portname instead of LPT1, but it did not work. Any help will be much appreciated.
Thanks.
for LPT 1 these commands work:
copy <filename> LPT1
or
type <filename> > LPT1
If these commands work for a network port, instead of LPT 1, we should be set. I tried adding a network printer port using Microsoft TCP/IP Printing and use the portname instead of LPT1, but it did not work. Any help will be much appreciated.
Thanks.