A printer enables selecting the process used for printing to the end of
the print data when a no-paper state occurs during printing. The printer
1 has a resumption unit 37 that resumes the interrupted print job after a
no-paper state is cleared, and a starting unit 39 that prints the print
data from the beginning after a no-paper state is cleared. When a
no-paper state occurs during printing, the resumption unit 37 or starting
unit 39 that was set by the process content setting unit 32 operates. It
is therefore possible to select the process for printing to the end after
a no-paper state occurs without needing to modify the application program
that runs on the external device 50 that sends the print data to the
printer. Because the print data can be printed to the end regardless of
which process is selected, it is also not necessary to resend the print
data from the external device 50.