calling a control panel/printers/printer from vb 
Author Message
 calling a control panel/printers/printer from vb

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!



Sun, 15 Sep 2002 03:00:00 GMT  
 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!



Sun, 15 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Changing default printer on the control panel from VB

2. Help, How to send printer command to printer bypassing printer driver in vb

3. Open Printer Control Panel

4. Shelling control panel, printers, etc.

5. Modifying printer parameters such as paper size in control panel

6. Changing Printers property reset printer to Windows default printer

7. Printer.Print and printer control codes?

8. Printing to COM serial Printer without using Printer Control

9. Sending Printer control Codes to printer

10. printer control object - cannot send Esc character to printer

11. Printer Control->Default Printer

12. Extracting printer name from common printer dialogue control

 

 
Powered by phpBB® Forum Software