MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsPrinterInfoMBS class

class, Printing, MBS Win Plugin (WindowsPrint), class WindowsPrinterInfoMBS,
Plugin version: 12.1, Mac: No, Win: Yes, Linux: No, Console & Web: Yes, Feedback.

Function: The class for details on printer information.
Example:
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

for each p as WindowsPrinterInfoMBS in printers
MsgBox p.PrinterName
next
Notes:
This class wraps the PRINTER_INFO_2 structure on windows which you find documented here:
http://msdn.microsoft.com/en-us/library/dd162845(VS.85).aspx
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Printer Enumeration Flags

Constant Value Description
kPrinterFlagsConnections 4 The function enumerates the list of printers to which the user has made previous connections.
kPrinterFlagsDefault 1 Default printer.
kPrinterFlagsLocal 2 If the kPrinterFlagsName flag is not also passed, the function ignores the Name parameter, and enumerates the locally installed printers. If kPrinterFlagsName is also passed, the function enumerates the local printers on Name.
kPrinterFlagsName 8 The function enumerates the printer identified by Name. This can be a server, a domain, or a print provider. If Name is nil, the function enumerates available print providers.
kPrinterFlagsNetwork 64 Network printers?
kPrinterFlagsRemote 16 Remote (non Local) printers?
kPrinterFlagsShared 32 The function enumerates printers that have the shared attribute. Cannot be used in isolation; use an OR operation to combine with another constants.

This class has no sub classes.

Some examples which use this class:


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


WindowsPrintDialogMBS   -   WindowsPrinterJobMBS




Links
MBS Real Studio Chart Plugins