Print Document
The PrintDocument component configures an object that can be reused that sends output to a printer, when printing from a form.
With a PrintDocument component created, properties such as the DocumentName and PrinterSettings can be configured so that when the Print method is called the printing process is started.
Properties
The key properties for the PrintDocument component include:
-
DocumentName. Specifies the name of the document displayed to the user.
-
OriginAtMargins. Indicates that the printing for the graphics origin is located at the user-specified page margins.
Events
Events can be configured for the PrintDocument to specify the behaviour of the control. For example, an action can be configured to occur when printing is finished using the EndPrint event property.
For information on configuring events and other components of the design using a script, see: Working with Scripts.
Adding a PrintDocument
When you drag a PrintDocument 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 PrintDocument component can be viewed at the link to Microsoft® Documentation.