Patent ID: 8503022

Claim:
An image forming apparatus comprising: a connector unit configured to connect to an external memory device; a detecting unit configured to detect whether the external memory device is connected to the connector unit or not and to output a detection result indicating that the connector unit is in a connected state or an unconnected state; a printing unit configured to execute a printing according to data from the external memory device connected to the connector unit; an internal memory configured to store the data from the external memory device, wherein the printing unit is configured to execute the printing after the internal memory stores the data from the external memory device; a suspending unit configured to suspend operation of the printing unit according to a predetermined timing in response to a change in the detection result from the connected state to the unconnected state, wherein the suspending unit is configured to suspend operation of the printing unit by stopping the printing temporarily and resuming the printing thereafter; a creating unit configured to create a print designation table when the data is designated to be printed; a recording control unit configured to record, in the print designation table, identification information used for identifying unprinted data among the data designated to be printed by the printing unit; and a restarting unit configured to determine whether the print designation table exists when the external memory device is connected to the connector unit after the suspending unit suspends the operation of the printing unit and configured to allow printing of the unprinted data based on the identification information recorded in the print designation table when the restarting unit determines that the print designation table exists.