Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsPrinterInfoMBS class.

WindowsPrinterInfoMBS.LocalPrinters as WindowsPrinterInfoMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the printers as an array.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

for each p as WindowsPrinterInfoMBS in printers
MsgBox p.PrinterName
next

On any error the array will be empty.

Some examples using this method:

WindowsPrinterInfoMBS.Printers(flags as Integer, Name as Variant = nil) as WindowsPrinterInfoMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Printing MBS Win Plugin 15.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The Printers function enumerates available printers, print servers, domains, or print providers.

If you call this with flags = kPrinterFlagsLocal + kPrinterFlagsConnections and name = nil, you get same as LocalPrinters function.

see also
https://msdn.microsoft.com/en-us/library/windows/desktop/dd162692(v=vs.85).aspx

Some examples using this method:

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...