How to get code to use printer

This is a discussion on How to get code to use printer within the C Programming forums, part of the General Programming Boards category; Hello, I am doing a little hobby project and i am making a program that reads a table of data ...

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    1

    How to get code to use printer

    Hello, I am doing a little hobby project and i am making a program that reads a table of data and the program will then ask for specific keywords to pick out specific rows of the data then print all of this data selected is written to a file. I know to do all of this i think but then i want the program to call the printer and print the file.

    How could i achieve this? I am a beginner for the most part so try to make it simple if possible

    Thanks in advance

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Get the program working so that you can send what you need to a file first, and once you have that working, think about printing.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    msh
    msh is offline
    Novice
    Join Date
    Jul 2009
    Posts
    568
    When you've done what quzah suggested, you should look into Win32 API (MSDN is your friend, here) if you're on Windows or CUPS (I think?) if you're on *nix.
    Disclaimer: This post shows my ignorance at the time of its making. I claim ownership of but not responsibility for all errors in it. Reference at your own peril.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with Printer code
    By TAZIN in forum Windows Programming
    Replies: 2
    Last Post: 05-03-2010, 05:57 PM
  2. Printer out from C++
    By simsjunkie2003 in forum C++ Programming
    Replies: 4
    Last Post: 05-02-2008, 07:25 PM
  3. Printer
    By Gerard Fremaint in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 09-08-2002, 04:47 AM
  4. How to write code to change the printer resolution
    By ooosawaddee3 in forum C++ Programming
    Replies: 0
    Last Post: 07-26-2002, 07:04 PM
  5. printer in w2k
    By loobian in forum C++ Programming
    Replies: 5
    Last Post: 12-23-2001, 06:24 AM

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