Thread: printer

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    1

    Post printer

    how do i print a string from my program to the printer

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    1

    Wink

    void print_it(char printwhat[size])
    {
    FILE *the_printer = fopen("LTP1", "w");
    fprintf( the_printer, "%s", printwhat );
    fclose( the_printer );
    }

    Now if I can just figure out how to colour the text first I should be sorted too!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Set Printer Prior To Loading Print Dialog Box
    By Beaner in forum Windows Programming
    Replies: 3
    Last Post: 10-10-2008, 01:02 PM
  2. changing property (layout) of a printer
    By leojose in forum Windows Programming
    Replies: 5
    Last Post: 12-05-2005, 07:16 AM
  3. printer gone crazy
    By DavidP in forum Tech Board
    Replies: 2
    Last Post: 03-29-2004, 01: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