Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsPageSetupDialogMBS class.

WindowsPageSetupDialogMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The constructor.

WindowsPageSetupDialogMBS.GetDevNames(byref DriverName as string, byref DeviceName as string, byref OutputName as string, byref flags as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Queries the strings that identify the driver, device, and output port names for a printer.

Returns true if values are available and false if not.

DriverName: The file name (without the extension) of the device driver. On input, this string is used to determine the printer to display initially in the dialog box.
OutputName: The device name for the physical output medium (output port).
Flags: Indicates whether the strings here identify the default printer. This string is used to verify that the default printer has not changed since the last print operation. If any of the strings do not match, a warning message is displayed informing the user that the document may need to be reformatted. On output, the Flags member is changed only if the Print Setup dialog box was displayed and the user chose the OK button. The DN_DEFAULTPRN flag is used if the default printer was selected. If a specific printer is selected, the flag is not used. All other flags in this member are reserved for internal use by the dialog box procedure for the Print property sheet or Print dialog box.

WindowsPageSetupDialogMBS.PageSetupDialog as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Creates a Page Setup dialog box that enables the user to specify the attributes of a printed page.

These attributes include the paper size and source, the page orientation (portrait or landscape), and the width of the page margins.

If the user clicks the OK button, the return value is true. The members of the object indicate the user's selections.
If the user cancels or closes the Page Setup dialog box or an error occurs, the return value is false. To get extended error information, use the lasterror property.

Starting with Windows Vista, the PageSetupDialog does not contain the Printer button. To switch printer selection other functions.

WindowsPageSetupDialogMBS.SetDevNames(DriverName as string, DeviceName as string, OutputName as string, flags as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Sets the strings that identify the driver, device, and output port names for a printer.

Returns true on success and false on failure.

DriverName: The file name (without the extension) of the device driver. On input, this string is used to determine the printer to display initially in the dialog box.
OutputName: The device name for the physical output medium (output port).
Flags: Indicates whether the strings here identify the default printer. This string is used to verify that the default printer has not changed since the last print operation. If any of the strings do not match, a warning message is displayed informing the user that the document may need to be reformatted. On output, the Flags member is changed only if the Print Setup dialog box was displayed and the user chose the OK button. The DN_DEFAULTPRN flag is used if the default printer was selected. If a specific printer is selected, the flag is not used. All other flags in this member are reserved for internal use by the dialog box procedure for the Print property sheet or Print dialog box.

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


The biggest plugin in space...