Patent ID: 7233751

Claim:
An image forming apparatus comprising: a main body having a copy function of printing an image read from a document on a paper sheet, a printer function of printing an externally input image on a paper sheet, and a paper ejection port to eject a printed paper sheet; a paper ejection unit which has a first tray and a second tray for receiving a paper sheet ejected from the paper ejection port, and moves the trays selectively to the positions corresponding to the paper ejection port; a detection part configured to detect which one of the trays of the paper ejection unit is set at the position corresponding to the paper ejection port; a CPU to perform functions, including starting printing by the copy function while holding the trays of the paper ejection unit at the current positions, if the number of copies is more than one and the first tray is detected by the detection part when a copy job for printing by the copy function is entered; starting printing by the copy function after setting the first tray at the position corresponding to the paper ejection port, if the number of copies is more than one and the second tray is detected by the detection section when a copy job for printing by the copy function is entered; starting printing by the copy function while holding the trays of the paper ejection unit at the current positions, if the number of copies is one when a copy job for printing by the copy function is entered; starting printing by the printer function while holding the trays of the paper ejection unit at the current positions, if the second tray is detected by the detection part when a print job for printing by the printer function is entered; and starting printing by the printer function after setting the second tray at the position corresponding to the paper ejection port, if the first tray is detected by the detection part when a print job for printing by the printer function is entered.