In an inkjet printing apparatus, as positions where preliminary discharge is performed to cause a printhead to discharge ink irrespective of printing, first and second preliminary discharge performing positions are provided within the moving area of a carriage, and a position or a combination of positions where preliminary discharge is performed is set from the first and second preliminary discharge performing positions on the basis of the information of the size and position of a printing medium. This makes it possible to simplify control concerning the setting of preliminary discharge performing positions and reduce the load on the printing apparatus.