Platforms to show: All Mac Windows Linux Cross-Platform
Back to WindowsDeviceModeMBS class.
WindowsDeviceModeMBS.ApplyToSetupString(SetupString as String) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS Win Plugin | 17.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
The setup string contains a device mode and we replace the one from Xojo with our own.
The other information is kept the same.
WindowsDeviceModeMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS Win Plugin | 12.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Size is set for you to default name of the data structure.
WindowsDeviceModeMBS.RawData(Unicode as boolean = true) as memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS Win Plugin | 13.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on any error.
If Unicode is true, we use DEVMODEW and if Unicode is false, we use DEVMODEA structure.
WindowsDeviceModeMBS.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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS Win Plugin | 17.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
This setupstring is empty on error.
If not empty, you can assign to PrinterSetup.SetupString.
Please pass reasonable flags.
Check existing SetupStrings from Xojo for possible values.
Resolution parameters can e.g. bei 72.
Supports Xojo 2017r1 with 17.3 plugins.
See also:
WindowsDeviceModeMBS.SetupString(Margin as Integer = 2500) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS Win Plugin | 14.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
This setupstring is empty on error.
If not empty, you can assign to PrinterSetup.SetupString.
Supports Xojo 2017r1 with 17.3 plugins.
See also:
The items on this page are in the following plugins: MBS Win Plugin.