GetRedirectedPrinter

 

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

 

GetRedirectedPrinter(pDevMode As Long, lPosition As Long) As String

 

Input value:pDevMode        - handle to the BlackIceDEVMODE structure.

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

  you want to retrieve.

Return value:String             - name of redirect printer or empty string if any error occurred

 

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