Image Viewer CP ActiveX Control

PrintImage2Printer

 

Print the current image to specific printer, the printer dialog will not display.

Public Function PrintImage2Printer(
   ByVal strPrintName As String
) As Integer

 

Parameter
strPrintName
the printer name.

Return Value

Return 1 - successful
Return 0 - Failed


Example

   

Visual Basic Syntax
ImageViewer1.PrintImage2Printer "HP LaserJet 4"