printing in gnome with custom C program

Need help with C, C++, perl, python, etc?

printing in gnome with custom C program

Postby neil » 2006-05-05 07:39

I am trying to do some printing in a program.

I am going to try to use libgnomeprint and libgnomeprintui, there doesn't seem to be much in the way of examples. :( I did find one though, :)

http://www.colino.net/wordpress-1.5/archives/2005/06/26/libgnomeprint-example/

I would like to not use the standard print dialog, I wan't to be able to controll exactly what is printed, all I want the user to be able to decide is what printer to send the output to. But I haven't been able to find how to set what pinter the print will go to. There doesn't seem to be an API to do this. :?:

Any help apprieciated.
neil
 

found some of the answer.

Postby neil » 2006-05-06 08:07

I found the undocumented option for gnome_print_config_set(). You can set the printer with a comman like:
gnome_print_config_set (config, "Printer", "PDF");
:D

But I haven't been able to find out how to get a list of what printers are available
:(
neil
 


Return to Programming

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable