Thread: Printing the program to a printer

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    7

    Printing the program to a printer

    What commands should I put at the end of my program to make it print to a printer?

    The only examples I have of how to do this is something like

    Code:
    fprintf()
    It doesnt go into detail as to what should be in the () so I have no idea.

    I just though there might be something easy to toss on the end to make it print.

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Unhappy Another one of those...

    What operating system & compiler? There is no standard way to print. It's platform dependent. In true-DOS you can redirect to stdprn. (I never was able to print from a console application. So, I decided it was time to learn some Windows programming.)

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    7
    I am turning this project in on Visual C++ but I have Dev-C++ here on my pc, both are running windows XP.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. program printing ".N=?" at beginning of string
    By bertazoid in forum C Programming
    Replies: 22
    Last Post: 02-10-2009, 12:14 PM
  3. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  4. Replies: 2
    Last Post: 05-10-2002, 04:16 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM