How to check the printing process