Thread: how to activate printer

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    7

    Exclamation how to activate printer

    hi

    I want to pass dfferent file names as argument to the function and that files are to be printed by the printer, how to do that ... what are the possible methods i can do that...that is how can i send a file to printer through C programm.

    please help

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    7
    working in windows and printer is inkjet printer ... is there possiblity of writing to any type of printer

  3. #3
    Registered User breed's Avatar
    Join Date
    Oct 2001
    Posts
    91
    well if it's on your home computer you might just try this out first


    if( prnter_fp = fopen("PRN", "wt") != NULL)
    {
    printf("error writing to printer");
    exit(1);
    }


    then use the prnter_fp in the fprintf() function along with the format specifiers & args.
    this worked on my home set up win98 bubble prn.
    Before you judge a man, walk a mile in his
    shoes. After that, who cares.. He's a mile away and you've got
    his shoes.
    ************William Connoly

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bluetooth printer
    By Opariti in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-01-2009, 11:13 AM
  2. Set Printer Prior To Loading Print Dialog Box
    By Beaner in forum Windows Programming
    Replies: 3
    Last Post: 10-10-2008, 01:02 PM
  3. changing property (layout) of a printer
    By leojose in forum Windows Programming
    Replies: 5
    Last Post: 12-05-2005, 07:16 AM
  4. Success - Output to Printer
    By noraa in forum C Programming
    Replies: 5
    Last Post: 08-04-2002, 09:12 AM
  5. Replies: 0
    Last Post: 04-30-2002, 07:24 PM