Output to a printer

This is a discussion on Output to a printer within the C++ Programming forums, part of the General Programming Boards category; Hi everyone, I was just wondering, how would I go about sending information straight to a printer?...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    21

    Output to a printer

    Hi everyone, I was just wondering, how would I go about sending information straight to a printer?

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    in general File->Print->OK
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    21
    well, right now this is the particular code that I'm using

    Code:
    cprn.open("LPT1");
    cprn << file.custname << endl;
    cprn << file.custID;
    cprn << file.subadd.streetnum << " " << file.subadd.streetname;
    cprn.close();

  4. #4
    Registered User
    Join Date
    Apr 2005
    Posts
    21
    oh yeah, forgot to mention, it's not working at the moment..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic C input output program help
    By trevordunstan in forum C Programming
    Replies: 2
    Last Post: 01-27-2008, 06:41 PM
  2. 2d game
    By JordanCason in forum Game Programming
    Replies: 5
    Last Post: 12-08-2007, 10:08 PM
  3. Having trouble making a function do what I want.
    By Shamino in forum C++ Programming
    Replies: 9
    Last Post: 12-07-2007, 11:20 AM
  4. Trying to store system(command) Output
    By punxworm in forum C++ Programming
    Replies: 5
    Last Post: 04-20-2005, 07:46 PM
  5. sorting output on student info program
    By indigo0086 in forum C++ Programming
    Replies: 2
    Last Post: 11-05-2002, 11:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21