|
|
|
|
|
Dicas
|
|
Visual Basic (Impressões/Impressoras)
|
|
|
Título da Dica: Acessar as propriedades da impressora sem ocx ...
|
|
|
|
Postada em 23/11/2001 por Maze
mazesyst@ig.com.br
Private Declare Function OpenPrinter Lib "winspool.drv" Alias "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, pDefault As Any) As Long
Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal hPrinter As Long) As Long
Private Declare Function PrinterProperties Lib "winspool.drv" (ByVal hwnd As Long, ByVal hPrinter As Long) As Long
Private Sub Form_Load() 'KPD-Team 2001 'URL: http://www.allapi.net/ 'E-Mail: KPDTeam@Allapi.net Dim hPrinter As Long OpenPrinter Printer.DeviceName, hPrinter, ByVal 0& PrinterProperties Me.hwnd, hPrinter ClosePrinter hPrinter End Sub
|
|
|
|
|