Page 1 of 1

Printer properties config

Posted: Tue Jul 17, 2007 4:29 am
by AlexSchaft
Hi,

In our applications, we have our own printer selection dialog box, due to the fact that we have to add a couple of custom destinations in our applications.

The file->print, preferences button in ie and the properties button in acrobat reader both bring up a full properties box, while the firefox one is limited

How would I call up this printer properties button for a specific printer name, and specify how much data to ask for?

Posted: Tue Jul 17, 2007 6:43 am
by Antonio Linares
Alex,

This may be of help:
http://www.devx.com/vb2themax/Tip/18895

you can easily port it to FWH

Posted: Tue Jul 17, 2007 6:57 am
by Antonio Linares
The PrinterProperties function displays a printer-properties dialog box for the specified printer.

BOOL PrinterProperties(

HWND hWnd, // handle of parent window
HANDLE hPrinter // handle of printer object
);

Parameters

hWnd
Identifies the parent window of the dialog box.

hPrinter
Identifies a printer object.

Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

See Also

OpenPrinter

Posted: Tue Jul 17, 2007 9:30 am
by AlexSchaft
I'll check those out, thanks.

Alex