Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

printing in gnome with custom C program

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
neil

printing in gnome with custom C program

#1 Post by neil »

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/arc ... t-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.

#2 Post by neil »

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
:(

Post Reply