Gets or sets a PrinterSettings object that you can use to specify various properties of a printer.
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
The settings returned by the PrinterSettings are the same settings that are exposed to a user in the Print dialog box.
You can specify several printer settings by using the PrinterSettings property. For example, use the Copies property to specify the number of copies to print. Use the PrinterName property to specify the printer to use, and use the PrintRange property to specify the range of pages to print.
The following code example demonstrates how to use the PrinterSettings property to set the number of copies to print and to check whether the specified printer is valid. This example requires that you have a PrintForm component named PrintForm1 on a form.
PrintForm Component (Visual Basic)
How to: Print a Form by Using the PrintForm Component (Visual Basic)
How to: Print the Client Area of a Form (Visual Basic)
How to: Print Client and Non-Client Areas of a Form (Visual Basic)
How to: Print a Scrollable Form (Visual Basic)
Deploying Applications That Reference the PrintForm Component (Visual Basic)