PrintGetPrinterSettings Method (GdPictureImaging)
Returns the printer settings of the active printer.
As explained in the GdPictureImaging.PrintGetActivePrinter or the GdPictureImaging.PrintSetActivePrinter methods, none of the available printers or their properties are affected using any of the print methods of this class.
public PrinterSettings PrintGetPrinterSettings()
public function PrintGetPrinterSettings(): PrinterSettings;
public function PrintGetPrinterSettings() : PrinterSettings;
public: PrinterSettings* PrintGetPrinterSettings();
public:
PrinterSettings^ PrintGetPrinterSettings();
'Declaration
Public Function PrintGetPrinterSettings() As PrinterSettings
Return Value
A System.Drawing.Printing.PrinterSettings object. The printer settings of the active printer.
Specifying that files will print to a file.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
PrinterSettings prnSettings = gdpictureImaging.PrintGetPrinterSettings();
// Set the option to print to a file.
prnSettings.PrintToFile = true;
gdpictureImaging.PrintSetPrinterSettings(prnSettings);
}