Platforms to show: All Mac Windows Linux Cross-Platform

WindowsPageFormatMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Printing MBS Win Plugin 10.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The class for a page format.
Example
// change the printer name to your printer's name
dim w as new WindowsPrinterMBS(WindowsPrinterMBS.GetDefaultPrinter)
dim formats(-1) as WindowsPageFormatMBS = w.GetPrinterFormats

for each p as WindowsPageFormatMBS in formats
MsgBox p.Name
next

This class wraps the FORM_INFO_1 structure. You can find more information here:
http://msdn.microsoft.com/en-us/library/dd144836(v=VS.85).aspx

Constants

Constant Value Description
FORM_BUILTIN 1 One of the flag constants. If this bit-flag is set, the form is part of the spooler. Form definitions with this flag set do not appear in the registry.
FORM_PRINTER 2 One of the flag constants. If this bit flag is set, the form is associated with a certain printer, and its definition appears in the registry.
FORM_USER 0 One of the flag constants. If this bit flag is set, the form has been defined by the user. Forms with this flag set are defined in the registry.

String Type Constants

Constant Value Description
STRING_LANGPAIR 4 The display name and language ID are provided directly by DisplayName and the language is specified by LangId.
STRING_MUIDLL 2 The display name is extracted from the Multilingual User Interface localized resources DLL specified in MuiDll. The ID is in the ResourceId member.
STRING_NONE 1 There is no localized display name.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries


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


WindowsOCRWordMBS   -   WindowsPageSetupDialogMBS


The biggest plugin in space...