Patent ID: 7605935

Claim:
A printer comprising: a receiving buffer in which received print data and control data are stored therein without analysis as received data in the order of receipt; an executing section configured to read the received data from the receiving buffer in the order of storage, and develop the received data into an image if the received data is the print data and execute a control command if the received data is a control command of the control data; and a pre-processing section configured to pre-read the received data stored in the receiving buffer before the executing section reads the received data and, when a specific control command of the control data from the pre-read received data is found, the pre-processing section executes a procedure corresponding to the detected control command prior to the executing section; wherein the specific control command is a cancel command for canceling the print based on the print data received prior to the specific control command, and when the pre-processing section finds the cancel command, the pre-processing section executes the cancel command prior to the executing section; and further comprising a read-out position changing section which functions, when the pre-processing section has executed the cancel command, such that the position in the receiving buffer for the executing section to read the received data is jumped to the position next to the cancel command.