RE: How can I get the resolution of printer?

From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] On Behalf Of yanghaitao
Sent: Friday, June 19, 2009 1:36 AM

Hi, All:
    I want to create a customized printing dialog.  Now I can enumerate all printers in my system, but I don't know how can I get the resolution list of specific printer?
    Thanks advanced!

Alfred Young



If it is inside your print dialog:


   dpi_x = gtk_print_context_get_dpi_x(context);

    dpi_y = gtk_print_context_get_dpi_y(context);


The print context is passed to your “begin-print” signal handler.



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