
calling a control panel/printers/printer from vb
Use the following API:
Enum PrinterActions
PRINTACTION_OPEN
PRINTACTION_PROPERTIES
PRINTACTION_NETINSTALL
PRINTACTION_NETINSTALLLINK
PRINTACTION_TESTPAGE
PRINTACTION_OPENNETPRN
PRINTACTION_DOCUMENTDEFAULTS
PRINTACTION_SERVERPROPERTIES
End Enum
Declare Function SHInvokePrinterCommand Lib "Shell32" _
Alias "SHInvokePrinterCommandA" _
(ByVal hwnd As Long, ByVal uAction As PrinterActions, _
ByVal lpBuf1 As String, ByVal lpBuf2 As String, _
ByVal fModal As Long) As Long
SHInvokePrinterCommand hwnd, PRINTACTION_OPEN _
, PrinterName, vbNullString,
False
--
Eduardo A. Morcillo
http://www.domaindlx.com/e_morcillo
Quote:
> in control panel/printers, when i click on one of the printers,
> it will display a window which will list all the print jobs on
> that particular printer.
> which api do i call to display that window.
> a sample program will be very much appreciated.
> thanks in advance!