EXCEL VBA printing API access to printer status
2016-08-23
0 0 0
no vote
Other
Earn points
Option Explicit' Win32 API declaresPrivate Declare Function OpenPrinter Lib " winspool.drv" ; _ Alias "OpenPrinterA" (ByVal pPrinterName As String, _ phPrn As Long, pDefault As Any) As Long Private Declare Function ClosePrinter Lib " winspool.drv" ; _ (ByVal hPrn As Long) As LongPrivate Declare Function GetPrinter Lib " winspool.drv" ; _ Alias "GetPrinterA" (ByVal hPrinter As Long, _ ByVal Level As Long, pPrinter As Any, _ ByVal cbBuf As Long, pcbNeeded As Long) As Long Private Declare Function SetPrinter Lib " winspool.drv" ; _ Alias "SetPrinterA" (ByVal hPrinter As Long, _ ByVal Level As Long, pPrinter As Any, _ ByVal Command As Long) As LongPrivate Declare Sub CopyMemory Lib "kernel32&quo
vb
api
打印
获取
打印机
状态
ExcelVBA
Related Source Codes
Student Management System
0
0
no vote
FTP upload and download written in VB
0
0
no vote
Qq batch login
0
0
no vote
Example MSNPopup
0
0
no vote
Password management software
0
0
no vote
No comment