This function retrieves the default printer.

[C++Builder/Visual C++]     DWORD IKGetDefaultPrinter(LPTCSTR PrinterName);
[Delphi]         function IKGetDefaultPrinter(PrinterName: PChar): DWORD;
[Visual Basic]   Function IKGetDefaultPrinter(ByVal PrinterName As String) As Long

Parameters

Name Explanation
PrinterName The variable for the printer name list

Return Value

Returns the length of the string (minus the terminal null) set in PrinterName. Returns 0 if unsuccessful.

Explanation

The IKGetDefaultPrinter function retrieves the default printer registered in the Windows printer folder. The default printer can also be retrieved using the IKEnumPrinters function.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation