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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.