FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Printer properties config
Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
Printer properties config
Posted: Tue Jul 17, 2007 04: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?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Printer properties config
Posted: Tue Jul 17, 2007 06: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Printer properties config
Posted: Tue Jul 17, 2007 06: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
Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
Printer properties config
Posted: Tue Jul 17, 2007 09:30 AM

I'll check those out, thanks.

Alex

Continue the discussion