Environment.SetPrinterSettings Method

Set the printer settings.
Public Sub SetPrinterSettings( _ 
ByVal printerSettings As PrinterSettings, _ 
Optional ByVal showDialog As Boolean = true _ 
)
This language is not supported or no code example is available.
public void SetPrinterSettings( 
PrinterSettings printerSettings
bool showDialog = 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.

Remarks
 
If you also need to use the PageSetup() method, then this method should be called first.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition