Patent ID: 7237858

Claim:
A printing apparatus for printing on a medium to be printed, comprising: a carry mechanism that carries the medium to be printed in a carrying direction; a plurality of ink ejection sections for intermittently ejecting ink while moving, said plurality of ink ejection sections being arranged in the carrying direction; and a sensor that detects a distance to said medium to be printed, while moving with said ink ejection sections; wherein said printing apparatus: alternately repeats an ink ejection operation by said plurality of ink ejection sections, and a carrying operation to carry the medium to be printed by a carry amount shorter than a length of said plurality of ink ejection sections in the carrying direction; stores a detection result of said sensor in a first ejection operation as a first result, and stores a detection result of said sensor in a second ejection operation, different from the first ejection operation, as a second result; and in a certain ejection operation, controls a timing of ejection of the ink from a certain ejection section, of said plurality of ink ejection sections, based on the first result, and controls a timing of ejection of the ink from another ink ejection section, of said plurality of ink ejection sections, based on the second result.