Re: Printing in GTK+

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What about a cross-platform method for printing?

-todd

Igor Gorbounov wrote:

Carl B. Constantine wrote:

* Roger Leigh (rleigh@xxxxxxxxxxxxxxxxxxxx) wrote:


"Carl B. Constantine" <duckwing@xxxxxxxxxxx> writes:



I have some data I want to print out in my application. How do I do it?
To make things a little different, I *might* print to one of those POS
type printers (USB) not a regular printer.


Pointers? Which classes do I need to use?

GTK+ itself doesn't currently offer any printing support, so the question doesn't really involve GTK+ directly. You need to either

1) Open the printer device (e.g. /dev/usb/lp0) and write data to it.
2) Open a pipe to the printer spooler (e.g. lpr -P queuename)
and then write the job data and close the connection.


Thanks for clearing this up.


Why, you could use gnomeprint and gnomeprintui. There are a lot of formatting abilities.
Igor Gorbounov
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list




_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux