Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsPrinterInfoMBS class.

WindowsPrinterInfoMBS.AttributeFlags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the printer attributes.

This member can be one of the following values:

PRINTER_ATTRIBUTE_QUEUED&h00000001
PRINTER_ATTRIBUTE_DIRECT&h00000002
PRINTER_ATTRIBUTE_DEFAULT&h00000004(Windows 95)
PRINTER_ATTRIBUTE_SHARED&h00000008
PRINTER_ATTRIBUTE_NETWORK&h00000010
PRINTER_ATTRIBUTE_HIDDEN&h00000020
PRINTER_ATTRIBUTE_LOCAL&h00000040
PRINTER_ATTRIBUTE_ENABLE_DEVQ&h00000080
PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS&h00000100
PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST&h00000200
PRINTER_ATTRIBUTE_WORK_OFFLINE&h00000400(Windows 95)
PRINTER_ATTRIBUTE_ENABLE_BIDI&h00000800(Windows 95)
PRINTER_ATTRIBUTE_RAW_ONLY&h00001000
PRINTER_ATTRIBUTE_PUBLISHED&h00002000(Windows 2000) Indicates whether the printer is published in the directory service.

Renamed Attributes parameter to AttributeFlags in plugin version 8.2.
(Read and Write property)

WindowsPrinterInfoMBS.AveragePPM as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the average number of pages per minute that have been printed on the printer.

(Read and Write property)

WindowsPrinterInfoMBS.Comment as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that provides a brief description of the printer.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

for each p as WindowsPrinterInfoMBS in printers
MsgBox p.PrinterName+": "+p.Comment
next

(Read and Write property)

WindowsPrinterInfoMBS.CountJobs as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the number of print jobs that have been queued for the printer.

(Read and Write property)

WindowsPrinterInfoMBS.Datatype as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that specifies the data type used to record the print job.

(Read and Write property)

WindowsPrinterInfoMBS.DefaultPriority as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the default priority value assigned to each print job.

(Read and Write property)

WindowsPrinterInfoMBS.DevMode as WindowsDeviceModeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The WindowsDeviceModeMBS object that defines default printer data such as the paper orientation and the resolution.

(Read and Write property)

WindowsPrinterInfoMBS.DriverName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that specifies the name of the printer driver.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

for each p as WindowsPrinterInfoMBS in printers
MsgBox p.PrinterName+": "+p.DriverName
next

(Read and Write property)

WindowsPrinterInfoMBS.Location as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that specifies the physical location of the printer.

for example, "Bldg. 38, Room 1164".
(Read and Write property)

WindowsPrinterInfoMBS.Parameters as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that specifies the default print-processor parameters.

(Read and Write property)

WindowsPrinterInfoMBS.PortName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that identifies the port(s) used to transmit data to the printer.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

for each p as WindowsPrinterInfoMBS in printers
MsgBox p.PrinterName+": "+p.PortName
next

If a printer is connected to more than one port, the names of each port must be separated by commas (for example, "LPT1:,LPT2:,LPT3:").
(Read and Write property)

WindowsPrinterInfoMBS.PrinterName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that specifies the name of the printer.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

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

(Read and Write property)

WindowsPrinterInfoMBS.PrintProcessor as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that specifies the name of the print processor used by the printer.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

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

(Read and Write property)

WindowsPrinterInfoMBS.Priority as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies a priority value that the spooler uses to route print jobs.

Possible values:
NO_PRIORITY0
MAX_PRIORITY99
MIN_PRIORITY1
DEF_PRIORITY1
(Read and Write property)

WindowsPrinterInfoMBS.SeparatorPageFile as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that specifies the name of the file used to create the separator page.

This page is used to separate print jobs sent to the printer.
(Read and Write property)

Some examples using this property:

WindowsPrinterInfoMBS.ServerName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string identifying the server that controls the printer.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

for each p as WindowsPrinterInfoMBS in printers
MsgBox p.PrinterName+": "+p.ServerName
next

If this string is "", the printer is controlled locally.
(Read and Write property)

WindowsPrinterInfoMBS.ShareName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
A string that identifies the sharepoint for the printer.
Example
dim printers(-1) as WindowsPrinterInfoMBS = WindowsPrinterInfoMBS.LocalPrinters

for each p as WindowsPrinterInfoMBS in printers
MsgBox p.PrinterName+": "+p.ShareName
next

This string is used only if the PRINTER_ATTRIBUTE_SHARED constant was set for the Attributes member.
(Read and Write property)

Some examples using this property:

WindowsPrinterInfoMBS.StartTime as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the earliest time at which the printer will print a job.

This value is expressed as minutes elapsed since 12:00 A.M. GMT (Greenwich Mean Time).
(Read and Write property)

WindowsPrinterInfoMBS.Status as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the printer status.

This member can be one of the following values:

PRINTER_STATUS_PAUSED &h00000001
PRINTER_STATUS_ERROR &h00000002
PRINTER_STATUS_PENDING_DELETION &h00000004
PRINTER_STATUS_PAPER_JAM &h00000008
PRINTER_STATUS_PAPER_OUT &h00000010
PRINTER_STATUS_MANUAL_FEED &h00000020
PRINTER_STATUS_PAPER_PROBLEM &h00000040
PRINTER_STATUS_OFFLINE &h00000080
PRINTER_STATUS_IO_ACTIVE &h00000100
PRINTER_STATUS_BUSY &h00000200
PRINTER_STATUS_PRINTING &h00000400
PRINTER_STATUS_OUTPUT_BIN_FULL &h00000800
PRINTER_STATUS_NOT_AVAILABLE &h00001000
PRINTER_STATUS_WAITING &h00002000
PRINTER_STATUS_PROCESSING &h00004000
PRINTER_STATUS_INITIALIZING &h00008000
PRINTER_STATUS_WARMING_UP &h00010000
PRINTER_STATUS_TONER_LOW &h00020000
PRINTER_STATUS_NO_TONER &h00040000
PRINTER_STATUS_PAGE_PUNT &h00080000
PRINTER_STATUS_USER_INTERVENTION&h00100000
PRINTER_STATUS_OUT_OF_MEMORY &h00200000
PRINTER_STATUS_DOOR_OPEN &h00400000
PRINTER_STATUS_SERVER_UNKNOWN &h00800000
PRINTER_STATUS_POWER_SAVE &h01000000

Windows 95: The PRINTER_STATUS_PAGE_PUNT value specifies that the page is being "punted" (that is, not printed) because it is too complex for the printer to print.
(Read and Write property)

WindowsPrinterInfoMBS.UntilTime as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the latest time at which the printer will print a job.

This value is expressed as minutes elapsed since 12:00 A.M. GMT (Greenwich Mean Time).
Status
(Read and Write property)

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


The biggest plugin in space...