GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintGetPrinterSettings Method
Example





In This Topic
PrintGetPrinterSettings Method (GdPictureImaging)
In This Topic
Returns the printer settings of the active printer.

As explained in the PrintGetActivePrinter or the PrintSetActivePrinter methods, none of the available printers or their properties are affected using any of the print methods of this class.

Syntax
'Declaration
 
Public Function PrintGetPrinterSettings() As PrinterSettings
public PrinterSettings PrintGetPrinterSettings()
public function PrintGetPrinterSettings(): PrinterSettings; 
public function PrintGetPrinterSettings() : PrinterSettings;
public: PrinterSettings* PrintGetPrinterSettings(); 
public:
PrinterSettings^ PrintGetPrinterSettings(); 

Return Value

A System.Drawing.Printing.PrinterSettings object. The printer settings of the active printer.
Remarks
It is recommend to use the GetStat method or the PrintGetStat method to identify the specific reason for the method's failure, if any.

Just to remind you that the active printer is the printer identified by the PrintGetActivePrinter method or set by the PrintSetActivePrinter method and it is dedicated to executing all subsequent print jobs using this class as well as utilizing all by you altered printer settings.

Example
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);
}
See Also