Thread: How to get code to use printer

  1. #1
    Registered User
    Join Date
    Jun 2011

    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
    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.

    Hope is the first step on the road to disappointment.

  3. #3
    Join Date
    Jul 2009
    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, 04:57 PM
  2. Printer out from C++
    By simsjunkie2003 in forum C++ Programming
    Replies: 4
    Last Post: 05-02-2008, 06:25 PM
  3. Printer
    By Gerard Fremaint in forum A Brief History of
    Replies: 7
    Last Post: 09-08-2002, 03: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, 06:04 PM
  5. printer in w2k
    By loobian in forum C++ Programming
    Replies: 5
    Last Post: 12-23-2001, 06:24 AM