gbzhhu
asked on
Trouble with OpenPrinter API and HP JetDirect 500X print server
I am trying to address each of the three separate ports on a HP JetDirect 500X print server using the OpenPrinter API (Private Declare Function OpenPrinter Lib "winspool.drv" Alias "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, ByVal pDefault As Long) As Long) The phPrinter variable keeps returning 0 which indicates an unsuccessful connection. I am passing the IP address of the print server to the pPrinterName parameter. Can anyone tell me what I am doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BenBuck
Thanks for that and contrary to my last post there are three ports (just a typo). The API now works but only for two ports. I expect it is either my syntax on port name or the port itself has a problem. Either way I am happy to figure it out myself
Cheers for the quick solution
Thanks for that and contrary to my last post there are three ports (just a typo). The API now works but only for two ports. I expect it is either my syntax on port name or the port itself has a problem. Either way I am happy to figure it out myself
Cheers for the quick solution
ASKER
Thanks