This method lists the installed printers

[Visual Basic]   [ Long = ]imagekitcontrolname.PrintDraw.EnumPrinters(DefaultPrinterNo As Integer)
[Visual C++]     [ long = ]imagekitcontrolname.GetPrintDraw().EnumPrinters(short *DefaultPrinterNo)
[VB.NET]   [ Integer = ]imagekitcontrolname.PrintDraw.EnumPrinters(ByRef DefaultPrinterNo As Short)
[C#.NET]   [ int = ]imagekitcontrolname.PrintDraw.EnumPrinters(ref short DefaultPrinterNo)

Parameters

Name Explanation
DefaultPrinterNo The number of the default printer (from 0)

Return Value

Returns the number of printers retrieved

Explanation

The EnumPrinters method lists the installed printers. If the return value is 1 or more, the names of the retrieved printers will be set in the Printers property. The list of printers will be in the following format: "xxxxx,xxxxx,xxxxx,E.., " (delimited by commas and ends with a comma)

The DefaultPrinterNo parameter refers to the number of the default printer on the list that appears in the Printers property. The first printer on the list is referred to by the number 0.

For scripting languages and other programs that require variant types, please refer to the EnumPrintersVariant method.

 

The ImageKit9 ActiveX is a product created by Newtone Corporation