Patent ID: 8325363

Claim:
A printer comprising: a receiving device configured to receive a plurality of print commands; a storage device configured to store, for each of the plurality of commands, an association of print data corresponding to the print command 1 and a print command receiving time at which the print command has been received by the receiving device; a printing device configured to print the print data in accordance with each of the plurality of print commands; a cancel input device configured to input a cancel command; a detecting device configured to detect a cancel input time at which the cancel command has been input; a determining device configured to, for each of a plurality of associations stored in the storage device, compare the cancel input time detected by the detecting device to the respective print command receiving time included in the association and determine whether the print command receiving time included in the association is earlier than the cancel input time detected by the detecting device; and an invalidating device configured to invalidate printing of the print data associated with the print command receiving time that is earlier than the cancel input time.