Patent ID: 8705143

Claim:
An image-forming device comprising: an image-reading unit configured to read an image formed on an original document; a data-reading unit configured to read, if the original document has a storing member, the data stored in the storing member; a duplication-performing unit configured to perform a plurality of duplication processes including at least; an image/data-duplication process in which the duplication-performing unit forms the read image read by the image-reading unit on a first recording medium having a storing member and writes the read data read by the data-reading unit to the storing member of the first recording medium; and an image-duplication process in which the duplication-performing unit forms the read image read by the image-reading unit on one of the first recording medium without writing the read data read by the data-reading unit to the storing member of the first recording medium and a second recording medium not having a storing member; a receiving unit configured to receive an image/data-duplication instruction and an image-duplication instruction, the image/data-duplication instruction being configured to indicate a number of times for which the image/data duplication process should be performed, and the image-duplication instruction being configured to indicate a number of times for which the image-duplication process should be performed; a controlling unit configured to control the duplication-performing unit to perform the image/data-duplication process if the receiving unit receives the image/data-duplication instruction and configured to control the duplication-performing unit to perform the image-duplication process if the receiving unit receives the image-duplication instruction a counter configured to count each time the image-duplication process has been performed; and a detecting unit configured to detect that the duplication-performing unit has failed to write the read data read by the data-reading unit to the storing member of the first recording medium in the image/data-duplication process, wherein the counter is further configured to count when the detecting unit detects that the duplication performing unit has failed to write the read data read by the data-reading unit to the storing member of the first recording medium in the image/data-duplication process.