[Gtk-sharp-list] Printing from a Gtk# application ?

Brad Taylor brad at getcoded.net
Thu Dec 18 14:18:39 EST 2008


On Thu, 2008-12-18 at 19:45 +0100, Jesper K. Pedersen wrote:
> I have run into a slight challenge in connection with a small
> application I have written.
> 
> I need to print out (on a physical printer) some details from the
> software.
> I have searched the net for ideas on how to handle printing - but have
> only been able to find examples on using Windows-Forms and not Gtk
> (note that the software runs on both Linux and Microsoft machines under
> Mono/Gtk#)

You can absolutely print from Gtk#.  Two resources I would use to figure
out how are:

 - Gtk+ Printing Manual
   http://library.gnome.org/devel/gtk/2.12/Printing.html
   
   I'd look here first to get an overview of how the classes are 
   structured, and what you need to do to get the job done.

 - Gtk# Documentation
   http://go-mono.org/docs/monodoc.ashx?tlink=4@ecma%3a1146%23Print%2f

   While fairly sparse, you can use the Gtk# documentation to map a Gtk+
   methods to Gtk#.

Hope this helps.

-Brad



More information about the Gtk-sharp-list mailing list