Printer Communication

This is a discussion on Printer Communication within the Networking/Device Communication forums, part of the General Programming Boards category; Does anyone have any links or articles on communicating with a printer? I'm looking to save myself some time and ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    220

    Printer Communication

    Does anyone have any links or articles on communicating with a printer?

    I'm looking to save myself some time and be able to write an essay or the equivalent, and be able to print the document just by running a program...i.e I write a program to print out "Blah" on a piece of paper. If you have any idea how I could accomplish this, assistance is appreciated
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    220
    thats.....just beautiful T_T *cries*

    Thanks Salem It worked! I don't really get why I have to press the resume button on my printer though....do you think you could help me with this?

    Heres my code:
    Code:
    #include <stdlib.h>
    
    int main()
    {
      system("echo Hello World > LPT1");
      system("pause");
    return 0;
    }
    Any ideas? It prints but I have to press the resume button on my printer before it prints for some reason....
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bluetooth printer
    By Opariti in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-01-2009, 12:13 PM
  2. Set Printer Prior To Loading Print Dialog Box
    By Beaner in forum Windows Programming
    Replies: 3
    Last Post: 10-10-2008, 02:02 PM
  3. changing property (layout) of a printer
    By leojose in forum Windows Programming
    Replies: 5
    Last Post: 12-05-2005, 07:16 AM
  4. Looking for communication lib
    By BrownB in forum C Programming
    Replies: 3
    Last Post: 04-27-2005, 11:01 AM
  5. Success - Output to Printer
    By noraa in forum C Programming
    Replies: 5
    Last Post: 08-04-2002, 10:12 AM

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