MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsDeviceModeMBS class

class, Printing, MBS Win Plugin (WindowsPrint), class WindowsDeviceModeMBS,
Plugin version: 10.4, Mac: No, Win: Yes, Linux: No, Console & Web: Yes, Feedback.

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:

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 PDF Plugins