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.
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

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