Thread: printing with a c programm

  1. #1
    Registered User
    Join Date
    Apr 2006

    printing with a c programm

    i've more questions =)

    how can i print something with a c programm?

    i mean when you start the programm the printer prints a text
    at this question too, there are no useable exambles in forum i think
    i mean im not to laizy to use the search function ; )

    thanks for help

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    How about being more specific about
    a) what OS/Compiler you're using
    b) what type of program you're trying to write (console or GUI)
    c) maybe even what sort of printer you have, traditional, USB, network?

    Also, what have you actually tried as a result of your searches, and what results did you get?
    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.

  3. #3
    Registered User
    Join Date
    Apr 2006
    i use visualstudio 2005
    console application

    and at first for a usb printer
    i mean a usb printer is more important than the ltp1 one

  4. #4
    Registered User
    Join Date
    Aug 2005
    >>i mean a usb printer is more important than the ltp1 one

    Not true -- the only difference is speed, usb is faster than lpt1, but more complicated too. You can't just open a FILE handle to a usb port like you can LPT1. there are printer functions in that can be used from console programs -- just have to use win32 api functions, such as .OpenPrinter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 01:13 AM
  2. generic printing preferences dialog box
    By stanlvw in forum Windows Programming
    Replies: 8
    Last Post: 06-27-2008, 02:20 AM
  3. printing data to a file
    By coralreef in forum C Programming
    Replies: 3
    Last Post: 11-02-2006, 08:10 PM
  4. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 04:46 AM
  5. Printing
    By Dual-Catfish in forum A Brief History of
    Replies: 3
    Last Post: 05-25-2002, 08:10 PM