Printer properties config

Printer properties config

Postby AlexSchaft » Tue Jul 17, 2007 4:29 am

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
AlexSchaft
 
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Postby Antonio Linares » Tue Jul 17, 2007 6:43 am

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: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Tue Jul 17, 2007 6:57 am

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
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby AlexSchaft » Tue Jul 17, 2007 9:30 am

I'll check those out, thanks.

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests