-
network printer
Hi all,
in my C program, when i want to print on a local printer, i use this:
FILE *prn = fopen("lpt1", "w");
Could you give me the equivalent statement in a case of network printer (that is not on lpt1)?
Maybe i could use a batch file with:
C:\> print \\servername\print_share
but i cannot find the equivalent of shell in C.
Could you help me?
Thanks.
Chiara
-
In Windows, you need to specifically open the printer device (see MSDN). However, NT might have an lpr port (Unix is so much easier in this respect) that you can send data to and it'll print it.