As I stated previously, your code may work with 4.12 but may not be setting the $printer variable correctly under 4.20.

So please use Vartypename() to validate your variable when it is assigned to insure that you are getting what you think you should be getting under 4.20.
_________________________
Home page: http://www.kixhelp.com/hb/