An ink-jet printer including a printing head operable to perform a printing operation on a printing surface of a printing portion of a workpiece, and a platen device including a planar platen on which said printing portion of the workpiece is set, said printing head and said platen device being movable relative to each between a first position and a second position, with a predetermined spacing maintained between said printing surface of said workpiece and said printing head in a direction perpendicular to said printing surface, said ink-jet printer comprising:
- a sensing device operable to detect an obstacle which exists on a plane of printing by said printing head and which disturbs said printing operation to be performed on said printing surface by said printing head, said sensing device scanning said predetermined spacing in a direction intersecting a direction of a relative movement of said printing head and said platen device while said printing head and said platen device are moved relative to each other.