Environment.SetPrinterSettings Method
Public Sub SetPrinterSettings( _
ByVal printerSettings As PrinterSettings, _
Optional ByVal showDialog As Boolean = true _
)
This language is not supported or no code example is available.
Parameters
- printerSettings
- PrinterSettings
The printer settings.
- showDialog
- bool
When true the print dialog is shown before printing, otherwise no.
If you also need to use the PageSetup() method, then this method should be called first.