Printer control method thereof, and data storage medium