WindowsPrinterInfoMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem