Trying to atomatically print page