Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsDeviceModeMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Printing MBS Win Plugin 10.4 No Yes No Yes, Windows only No
Function: The class for device modue information for a Windows printer.
dim d as new WindowsDeviceModeMBS
dim name as string = "My printer"

// here we define which values we want to change
// and change value
d.Orientation = d.DMORIENT_PORTRAIT

dim w as WindowsPrinterMBS = WindowsPrinterMBS.OpenPrinter(name)
if w.ChangePrinterSettings(d, 2) then
MsgBox "OK"
MsgBox "Failed"
end if
Basicly this class wraps the Windows DEVMODE structure.

For more information on the DEVMODE structure, visit this website:

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples which use this class:

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

WindowsDeviceMBS   -   WindowsDirectoryChangeMBS

MBS Xojo blog