BACKGROUND

Field

The present disclosure relates to an image forming apparatus, a method of controlling the image forming apparatus, and a storage medium.

Description of the Related Art

A facsimile apparatus is disclosed in Japanese Patent Laid-Open No. 2-153677, which acquires the telephone number of a source in facsimile (FAX) communication from a transmitting station information (TSI) signal and, if the acquired telephone number of the source coincides with a telephone number that is stored in advance, does not immediately print image data received in the FAX communication and accumulates the image data in a confidential box. In the facsimile apparatus disclosed in Japanese Patent Laid-Open No. 2-153677, it is necessary to input the number of the confidential box and a password to print the image data accumulated in the confidential box.

In an image forming apparatus in related art, in which image data received in the FAX communication is stored in a box before being printed, it is necessary for a user to specify an arbitrary box and to issue a print instruction, in addition to the specification, in order to print the image data. Accordingly, the operation by the user is troublesome.

Also with the technology disclosed in Japanese Patent Laid-Open No. 2-153677, although the image data from a source that is not intended by the user is not printed, it is necessary for the user to specify an arbitrary box and to issue a print instruction, in addition to the specification, in order to print the image data. Accordingly, the operation by the user is troublesome.

SUMMARY

The present disclosure addresses reducing the operation by the user, which concerns the instruction to print image data that is received.

According to an aspect of the present disclosure, an image forming apparatus includes a setting unit configured to accept designation of source information from a user and set the accepted source information in association with an object, a displaying unit configured to display the object, a receiving unit configured to receive image data from an external apparatus, and a printing unit configured to print an image on a sheet based on the image data received by the receiving unit, wherein, upon selection of the object displayed on the displaying unit, the printing unit prints an image on a sheet based on the image data, from among the image data received by the receiving unit, that is received from an external apparatus having source information corresponding to the source information associated with the object.

Further features of the present disclosure will become apparent from the following description of exemplary embodiments with reference to the attached drawings.

