Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsPrinterInfoMBS.LocalPrinters as WindowsPrinterInfoMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Printing MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: 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
Notes: On any error the array will be empty.

Feedback, Comments & Corrections

WindowsPrinterInfoMBS.Printers(flags as Integer, Name as Variant = nil) as WindowsPrinterInfoMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Printing MBS Win Plugin 15.2 No Yes No Yes, Windows only No
Function: The Printers function enumerates available printers, print servers, domains, or print providers.
Notes:
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

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins