The long delay is the printer drivers reinstalling, which says to me the primapstate() is not doing its job.

Take a look at the example in Primapstate() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=83306
and compare it to your code. It's possible the '' in your code is not working like expected.