November 11th, 2004, 02:29 AM
Get Printer Port Info for ALL printers
Hi Delphi forum friends:
I'm wondering if anyone can show me some codes on how to cycle through ALL printers and obtain info regarding the ports they are connected to.
Port := Array[0..255] of Char;
I have tried using GetPrinter(..., Port,. ..) but I always get an empty array.
Also, it seems that GetPrinter(...) always return info. on the current printer. What I need is info on ALL printers - not just the current one.
Any help on this would be greatly appreciated!