This method lists the installed printers.

[Visual Basic]   [ Long = ]imagekitcontrolname.PrintDraw.EnumPrintersVariant(DefaultPrinterNo As Variant)
[VB.NET]   [ Integer = ]imagekitcontrolname.PrintDraw.EnumPrintersVariant(ByRef DefaultPrinterNo As Object)
[C#.NET]   [ int = ]imagekitcontrolname.PrintDraw.EnumPrintersVariant(ref object DefaultPrinterNo)

Parameters

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

Return Value

Returns the number of printers retrieved

Explanation

The EnumPrintersVariant method lists the installed printers. This method is recommended when using scripting or other languages that require variant types.

This method is recommended when using scripting or other languages that require variant types or when using 64 bit builds in VB.NET or C#.

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.

Also see the EnumPrinters method.

 

The ImageKit9 ActiveX is a product created by Newtone Corporation