Most of the code I have seen that shows the print common dialog via API then sets the Printer object to the DevMode type properties, seems to put a 32 character limit on the dmDeviceName. For example, on my machine I have a network printer installed named \\SHENANDOAH\EPSON Stylus COLOR 900 but the dmDeviceName returns it as \\SHENANDOAH\EPSON Stylus COLOR plus a vbNullChar. Is there anyway to get around this or should I just compare the first 32 characters of Printer.DeviceName with dmDeviceName and hope that none of my clients have two different printers that have the first 32 characters the same?

Thanks

BestCoder