Platforms to show: All Mac Windows Linux Cross-Platform

WindowsPageSetupDialogMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The class to run the Windows Page Setup dialog.

Constants

Constant Value Description
DN_DEFAULTPRN 1 The flag for default printer on the SetDevNames/GetDevNames flag parameter.

Flags

Constant Value Description
PSD_DEFAULTMINMARGINS &h00000000 Sets the minimum values that the user can specify for the page margins to be the minimum margins allowed by the printer. This is the default. This flag is ignored if the PSD_MARGINS and PSD_MINMARGINS flags are also specified.
PSD_DISABLEMARGINS &h00000010 Disables the margin controls, preventing the user from setting the margins.
PSD_DISABLEORIENTATION &h00000100 Disables the orientation controls, preventing the user from setting the page orientation.
PSD_DISABLEPAPER &h00000200 Disables the paper controls, preventing the user from setting page parameters such as the paper size and source.
PSD_DISABLEPRINTER &h00000020 Obsolete.
Windows XP/2000: Disables the Printer button, preventing the user from invoking a dialog box that contains additional printer setup information.
PSD_INHUNDREDTHSOFMILLIMETERS &h00000008 Indicates that hundredths of millimeters are the unit of measurement for margins and paper size. The values in the Margin, MinMargin, and PaperSize members are in hundredths of millimeters. You can set this flag on input to override the default unit of measurement for the user's locale. When the function returns, the dialog box sets this flag to indicate the units used.
PSD_INTHOUSANDTHSOFINCHES &h00000004 Indicates that thousandths of inches are the unit of measurement for margins and paper size. The values in the Margin, MinMargin, and PaperSize members are in thousandths of inches. You can set this flag on input to override the default unit of measurement for the user's locale. When the function returns, the dialog box sets this flag to indicate the units used.
PSD_MARGINS &h00000002 Causes the system to use the values specified in the Margin members as the initial widths for the left, top, right, and bottom margins. If PSD_MARGINS is not set, the system sets the initial widths to one inch for all margins.
PSD_MINMARGINS &h00000001 Causes the system to use the values specified in the MinMargin members as the minimum allowable widths for the left, top, right, and bottom margins. The system prevents the user from entering a width that is less than the specified minimum. If PSD_MINMARGINS is not specified, the system sets the minimum allowable widths to those allowed by the printer.
PSD_NONETWORKBUTTON &h00200000 Hides and disables the Network button.
PSD_NOWARNING &h00000080 Prevents the system from displaying a warning message when there is no default printer.
PSD_RETURNDEFAULT &h00000400 PageSetupDialog does not display the dialog box. Instead, it sets the DevNames and DevMode members to objects that are initialized for the system default printer. PageSetupDlg returns an error if either DevNames or DevMode is not nil.
PSD_SHOWHELP &h00000800 Causes the dialog box to display the Help button. The hwndOwner member must specify the window to receive the HELPMSGSTRING registered messages that the dialog box sends when the user clicks the Help button.

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


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


WindowsPageFormatMBS   -   WindowsPDFDocumentMBS


The biggest plugin in space...