Computing.Net > Forums > Solaris > Printing in a C program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Printing in a C program

Reply to Message Icon

Name: Hank
Date: July 2, 2002 at 12:45:42 Pacific
Comment:

Hi,

can anybody give me a little introduction in writing a little C program which sent out some print to a network printer on a Solaris 8 platform.

Tried with the FILE, fopen, fprint an fclose statement, but with no success.

Thank in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: umang
Date: July 10, 2002 at 10:36:39 Pacific
Reply:

fprint prints to the file descriptor u specify..how did u open the 'printer' file??
to get a file handle to any file u must know the path to that device ... how do u specify a printers path to fopen?
the unix command lp can send a file to the printer..u may try using lp in the 'system' method..
pls elaborate yr problem..maybe i can help u better...


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Printing in a C program

How to print in a C program www.computing.net/answers/solaris/how-to-print-in-a-c-program/4718.html

Sending e-mail from a C program www.computing.net/answers/solaris/sending-email-from-a-c-program/3360.html

plibcap help. www.computing.net/answers/solaris/plibcap-help/3415.html