ACC: Enumerating Local and Network Printers (166008)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q166008 SUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.
This article shows you two procedures that use the EnumPrinters API
function to retrieve a list of printers available locally and that your
computer is connected to on the network.
The procedures demonstrate returning data to both the PRINTER_INFO_1
structure and the PRINTER_INFO_4 structure, each of which provides slightly
different information about the printer. If you are using Microsoft
Windows 95 or later, you can return data to the PRINTER_INFO_1 structure;
if you are using Microsoft Windows NT, you can return data to either
structure.
This article assumes that you are familiar with Visual Basic for
Applications and with creating Microsoft Access applications using the
programming tools provided with Microsoft Access. For more information
about Visual Basic for Applications, please refer to your version of the
"Building Applications with Microsoft Access" manual.
REFERENCES
For more information about the EnumPrinters function, please refer to the
Win32 SDK.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbhowto kbnetwork kbprint kbProgramming KB166008 |
---|
|