Printer properties config

Post Reply
User avatar
AlexSchaft
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Printer properties config

Post 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?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Alex,

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

you can easily port it to FWH
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
AlexSchaft
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Post by AlexSchaft »

I'll check those out, thanks.

Alex
Post Reply