Patent ID: 8340567

Claim:
A printing apparatus that includes a tray for setting a printing medium thereon, the printing apparatus comprising: a switch section that is used to perform a power-on operation or a power-off operation; a tray driving section that performs a driving operation of extracting the tray; a detection section that detects whether the printing medium exists on the tray; a control section that moves the tray to a discharge position by controlling the tray driving section in order to prompt an operation of extracting the printing medium from the tray before an initialization process ends when the printing medium is detected upon performing a power-on process; and a storage section that stores information that the control section moves the tray to the discharge position upon performing the power-on process, wherein the control section determines whether the tray moves to the discharge position upon performing the power-on process on the basis of the information stored in the storage section when the power-off operation is detected before the initialization process ends so as to interrupt a power supply in the state where the tray is located at a current position when the tray does not move to the discharge position upon performing the power-on process or to interrupt the power supply after accommodating the tray in the printing apparatus by controlling the tray driving section when the tray moves to the discharge position upon performing the power-on process, and wherein the control section determines whether the initialization process ends upon performing the power-off process and pulls the tray by controlling the tray driving section if it is determined that the tray moves to the discharge position upon performing the power-on process on the basis of the information stored in the storage section even when the initialization process has not yet ended.