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.
Example:
dim d as new WindowsDeviceModeMBS
dim name as string = "My printer"

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

dim w as WindowsPrinterMBS = WindowsPrinterMBS.OpenPrinter(name)
if w.ChangePrinterSettings(d, 2) then
MsgBox "OK"
else
MsgBox "Failed"
end if
Notes:
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

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




Links
MBS Xojo PDF Plugins