A method of printing on a mixed sequence of media sheets (16), using a printer (10) with a print head (12) that is adjustable in height relative to a print surface (14) that supports the media (16) using printing, wherein the media (16) differ in their specifications that define an admissible range (R) for the height (h) of the print head, characterised by the steps of:(a) retrieving admissible height ranges for a plurality of media sheets (16) that are scheduled for printing,(b) searching for a height value that is contained in the admissible range of all scheduled sheets,(c1) if such a height value is found, adjusting the print head (12) to that height value,(c2) if not, proceeding to a problem handling routine.