Platforms to show: All Mac Windows Linux Cross-Platform
WindowsDeviceModeMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Printing Windows | MBS Win Plugin | 10.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Basicly this class wraps the Windows DEVMODE structure.
For more information on the DEVMODE structure, visit this website:
http://msdn.microsoft.com/en-us/library/dd183565(VS.85).aspx
- 27 properties
- property Collate as Integer
- property Color as Integer
- property Copies as Integer
- property Data as Integer
- property DefaultSource as Integer
- property DeviceName as String
- property DitherType as Integer
- property DriverExtra as Integer
- property DriverVersion as Integer
- property Duplex as Integer
- property Fields as Integer
- property FormName as String
- property ICMIntent as Integer
- property ICMMethod as Integer
- property LogPixels as Integer
- property MediaType as Integer
- property Nup as Integer
- property Orientation as Integer
- property PaperLength as Integer
- property PaperSize as Integer
- property PaperWidth as Integer
- property PrintQuality as Integer
- property Scale as Integer
- property Size as Integer
- property SpecVersion as Integer
- property TTOption as Integer
- property YResolution as Integer
- 5 methods
- method ApplyToSetupString(SetupString as String) as string
- method Constructor
- method RawData(Unicode as boolean = true) as memoryblock
- method SetupString(ActualHorizontalResolution as integer, ActualVerticalResolution as integer, MaxHorizontalResolution as integer, MaxVerticalResolution as integer, MarginLeft as integer = 2500, MarginRight as integer = 2500, MarginTop as integer = 2500, MarginBottom as integer = 2500, MinMarginLeft as integer = 0, MinMarginRight as integer = 0, MinMarginTop as integer = 0, MinMarginBottom as integer = 0, PageSetupFlags as integer = 8) as string
- method SetupString(Margin as Integer = 2500) as string
- 3 shared methods
- shared method FromRawData(data as memoryblock, Unicode as boolean = true) as WindowsDeviceModeMBS
- shared method FromRawData(data as string, Unicode as boolean = true) as WindowsDeviceModeMBS
- shared method FromSetupString(SetupString as String) as WindowsDeviceModeMBS
- 206 constants
This class has no sub classes.
Some methods using this class:
- Graphics.WinApplyDevModeMBS(devmode as WindowsDeviceModeMBS) as boolean
- WindowsPrinterMBS.AdvancedDocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, parent as DesktopWindow) as integer
- WindowsPrinterMBS.AdvancedDocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, parent as window = nil) as Integer
- WindowsPrinterMBS.ChangePrinterSettings(value as WindowsDeviceModeMBS, Mode as Integer=2) as boolean
- WindowsPrinterMBS.DocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, Prompt as boolean = false, parent as window = nil) as Integer
- WindowsPrinterMBS.DocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, Prompt as boolean, parent as DesktopWindow) as integer
- WindowsPrinterMBS.GetPrinterSettings(Mode as Integer=2) as WindowsDeviceModeMBS
- WindowsPrinterMBS.SetPrinterSettings(value as WindowsDeviceModeMBS, Mode as Integer=2) as boolean
Some properties using for this class:
- WindowsPageSetupDialogMBS.DevMode as WindowsDeviceModeMBS
- WindowsPrintDialogMBS.DevMode as WindowsDeviceModeMBS
- WindowsPrinterInfoMBS.DevMode as WindowsDeviceModeMBS
- WindowsPrinterJobMBS.DevMode as WindowsDeviceModeMBS
Some examples using this class:
- /DynaPDF/Print PDF
- /Win/Print To Printer
- /Win/Printing/Advanced printing on Windows
- /Win/Printing/Print Jobs
- /Win/Printing/Windows Print Dialogs
- /Win/Printing/Windows Printer List
Blog Entries
- MBS Xojo Plugins, version 17.6pr4
- Detect PrinterSetup data format
- MonkeyBread Software Releases the MBS Xojo Plugins in version 17.3
- MBS Xojo Plugins, version 17.3pr7
- MBS Xojo Plugins, version 17.2pr3
- Print to Printer in Xojo on Windows
- [ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.3
- Updating PrinterSetup.SetupString on Windows
- More on printing on Windows
- MBS REALbasic Plugins Version 10.4 release notes
Xojo Developer Magazine
Videos
Release notes
- Version 18.0
- Fixed issue with WindowsDeviceModeMBS.DeviceName not set correctly.
- Version 17.3
- Added WindowsDeviceModeMBS.ApplyToSetupString method.
- Updated WindowsDeviceModeMBS class methods for SetupString to handle 2017r1 SetupString format.
- Version 17.2
- Added WindowsDeviceModeMBS SetupString with more parameters.
The items on this page are in the following plugins: MBS Win Plugin.
WindowsDeviceMBS - WindowsDevicePairingRequestedEventArgsMBS