Patent ID: 8542404

Claim:
An image forming apparatus which is capable of connecting to an information processing apparatus that stores a database for storing a plurality of profiles each specifying a scan setting for reading a document to generate image data and can change the plurality of profiles, the image forming apparatus comprising: a reading unit configured to read the document to generate the image data in accordance with a scan instruction for reading the document to generate the image data from the information processing apparatus; a first storage unit configured to acquire and store information indicating each of the plurality of profiles; a selection unit configured to select one profile based on the information stored in said first storage unit; a first transmission unit configured to transmit, to the information processing apparatus, identification information for identifying the profile selected by said selection unit; a reception unit configured to receive, from the information processing apparatus, the scan instruction that indicates the scan setting specified by the profile identified based on the identification information; a determination unit configured to determine whether the scan setting indicated by the scan instruction received by said reception unit and a scan setting specified by said one profile selected by said selection unit correspond to each other based on the information stored in said first storage unit; and a control unit configured to, in a case where said determination unit determines that both settings do not correspond to each other, read the document to generate the image data in accordance with the scan setting specified by said one profile selected by said selection unit, and not to read the document to generate the image data in accordance with the scan setting indicated by the scan instruction received by said reception unit.