|
-
Oct 23rd, 2002, 04:11 AM
#1
Thread Starter
New Member
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
-
Oct 23rd, 2002, 04:13 AM
#2
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|