SetRedirectedPrinter

 

Sets the name of the printer that the print job will be redirected to.

 

SetRedirectedPrinter(pDevMode As Long, szPrinterName As String, lPosition As Long) As Boolean

 

Input value:pDevMode        - handle to the BlackIceDEVMODE structure.

Input value: szPrinterName            - name of the printer

Input value: lPosition           - Zero based integer. This value indicates which redirect printer name

  you want to set.

Return value:String             - True on success, otherwise False.

 

NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.