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 ...
- 07-15-2008 #1Just 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é
- 07-15-2008 #2
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


Reply With Quote