Platforms to show: All Mac Windows Linux Cross-Platform
WindowsPrinterMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Printing | MBS Win Plugin | 3.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Objects of this class can operate on printers.
Some operations need administrative permissions. If you don't have them, lasterror is set to 5.
- 4 properties
- property Handle as Integer
- property Lasterror as Integer
- property LasterrorMessage as String
- property PrinterName as String
- 31 methods
- method AddForm(form as WindowsPageFormatMBS) as boolean
- method AdvancedDocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, parent as DesktopWindow) as integer
- method AdvancedDocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, parent as window = nil) as Integer
- method AllJobs as WindowsPrinterJobMBS()
- method CanPrinterPassThroughPostScript as boolean
- method ChangePrinterSettings(value as WindowsDeviceModeMBS, Mode as Integer=2) as boolean
- method ConfigurePort(name as string = "", parent as window = nil, PortName as string = "") as boolean
- method ConfigurePort(name as string, parent as DesktopWindow, PortName as string) as boolean
- method ConnectToPrinterDialog(parent as DesktopWindow) as boolean
- method ConnectToPrinterDialog(parent as window = nil) as boolean
- method Constructor(PrinterName as string, admin as boolean = false)
- method DeleteForm(name as string) as boolean
- method DeleteJob(JobID as Integer) as boolean
- method DeletePrinter as boolean
- method DocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, Prompt as boolean = false, parent as window = nil) as Integer
- method DocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, Prompt as boolean, parent as DesktopWindow) as integer
- method GetForm(name as string) as WindowsPageFormatMBS
- method GetJob(JobID as Integer) as WindowsPrinterJobMBS
- method GetPrinterFormats as WindowsPageFormatMBS()
- method GetPrinterSettings(Mode as Integer=2) as WindowsDeviceModeMBS
- method GetPrinterTechnology as string
- method PauseJob(JobID as Integer) as boolean
- method PausePrinter as boolean
- method PrinterProperties(parent as DesktopWindow) as boolean
- method PrinterProperties(parent as window = nil) as boolean
- method PurgePrinter as boolean
- method ResumeJob(JobID as Integer) as boolean
- method ResumePrinter as boolean
- method SetForm(name as string, form as WindowsPageFormatMBS) as boolean
- method SetJob(JobID as Integer, job as WindowsPrinterJobMBS) as boolean
- method SetPrinterSettings(value as WindowsDeviceModeMBS, Mode as Integer=2) as boolean
- 4 shared methods
- shared method DeletePrinterConnection(name as string) as boolean
- shared method GetDefaultPrinter as string
- shared method OpenPrinter(PrinterName as string, admin as boolean = false) as WindowsPrinterMBS
- shared method SetDefaultPrinter(PrinterName as string) as Integer
This class has no sub classes.
Some methods using this class:
- WindowsPrinterInfoMBS.OpenPrinter(admin as boolean = false) as WindowsPrinterMBS
Some examples using this class:
- /Win/HTMLViewer Windows/More HTMLViewer Printing
- /Win/Printing/Print Jobs
- /Win/Printing/Windows Print Dialogs
- /Win/Printing/Windows Printer List
- /Win/Windows Switch Printers for printing
Blog Entries
- MonkeyBread Software releases MBS Real Studio plug-ins in version 12.1
- MBS Real Studio Plugins, version 12.1pr7
- MBS Real Studio Plugins, version 12.1pr6
- More on printing on Windows
- MBS Real Studio Plugins, version 12.1pr4
- MBS Real Studio Plugins, version 12.1pr1
- MBS REALbasic Plugins Version 10.4 release notes
- MBS REALbasic Plugins, version 10.4pr2
The items on this page are in the following plugins: MBS Win Plugin.
WindowsPrinterJobMBS - WindowsProcessMBS