Page Setup Dialog

The PageSetupDialog printing control provides a dialog allowing a user to manipulate printing and margins; paper orientation, size, and source; as well as show Help and network buttons.

The PageSetupDialog component requires page settings to display, so the Document, PrinterSettings, or PageSettings properties must be set before calling ShowDialog or an exception will occur.

Properties

The key properties for the PageSetupDialog component include:

  • EnableMetric. Specifies whether the margin settings, when displayed in millimetres, should be automatically converted to and from hundredths of an inch.

  • MinMargins. Specifies the minimum margins that can be selected by the user for the print job.

  • ShowNetwork. Specifies whether the Network button is displayed on the Page Setup Dialog to allow sending of print jobs to a network printer.

Events

Events can be configured for the PageSetupDialog to specify the behaviour of the control. For example, an action can be configured to occur when a user clicks the Help button using the HelpRequest event property.

For information on configuring events and other components of the design using a script, see: Working with Scripts.

Adding a PageSetupDialog

When you drag a PageSetupDialog component from the Toolbox to a form in Flow Designer, it will appear as an entry in the design space. You can select the control and configure it using the Properties pane.

More information on the PageSetupDialog component can be viewed at the link to Microsoft® Documentation.