Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all, I'm writing an application in based in C/C++ and I want my app to print to a standard printer. From what I have read, the way to go ...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    3

    [LINUX] - print from application!?

    Hello all,

    I'm writing an application in based in C/C++ and I want my app to print to a standard printer.

    From what I have read, the way to go is to use CUPS as a layer between my app and the printer, so my question is...

    How do I do this?
    Does anyone know of a library (in C/C++ would be great, but any language that can interface C/C++ can is also good), that allows me to interface cups and setup/change the installed printers?

    I want something like this

    SetupPrinter(...)
    (...)
    PrintFile(...)

    best regards
    André

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hi,

    what's even better is to employ the standard widgets of the desktop environment your applications runs on. It will look much better and the user is already familiar with the controls. E.g. the GTK+ printing widget Printing
    which is used by all default GNOME applications.

    Nevertheless, the API to cups is to be found on
    Documentation - Common UNIX Printing System

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...