An inkjet printer, comprising: an ink head unit for ejecting ink toward a medium; a moving mechanism for moving the ink head unit in a left-right direction; a transfer mechanism for transferring the medium in a forward-rearward direction; and a control device for controlling the ink head unit, the moving mechanism, and the transfer mechanism; wherein the control device performs first printing by causing the ink head unit to eject the ink while sequentially transferring the medium forward and second printing by causing the ink head unit to eject the ink while sequentially transferring the medium rearward; wherein the ink head unit includes a first ink head (103a, 103b, 103c) for ejecting first ink and a second ink head (103a, 103b, 103c) for ejecting second ink, which is of a different type from the first ink; and the control device causes the first ink head (103a, 103b, 103c) to eject the ink in the first printing and causes the second ink head (103a, 103b, 103c) to eject the ink in the second printing, wherein the second ink head (103a, 103b, 103c) is located forward or rearward to the first ink head (103a, 103b, 103c), characterized in that either the control device causes the first ink head (103a, 103b, 103c) and the second ink head (103a, 103b, 103c) to eject the ink in the first printing, and does not cause the first ink head (103a, 103b, 103c) to eject the ink and causes the second ink head (103a, 103b, 103c) to eject the ink in the second printing, or the control device causes the first ink head (103a, 103b, 103c) to eject the ink and does not cause the second ink head (103a, 103b, 103c) to eject the ink in the first printing, and causes the first ink head (103a, 103b, 103c) and the second ink head (103a, 103b, 103c) to eject the ink in the second printing. an ink head unit for ejecting ink toward a medium; a moving mechanism for moving the ink head unit in a left-right direction; a transfer mechanism for transferring the medium in a forward-rearward direction; and a control device for controlling the ink head unit, the moving mechanism, and the transfer mechanism; wherein the control device performs first printing by causing the ink head unit to eject the ink while sequentially transferring the medium forward and second printing by causing the ink head unit to eject the ink while sequentially transferring the medium rearward; wherein the ink head unit includes a first ink head (103a, 103b, 103c) for ejecting first ink and a second ink head (103a, 103b, 103c) for ejecting second ink, which is of a different type from the first ink; and the control device causes the first ink head (103a, 103b, 103c) to eject the ink in the first printing and causes the second ink head (103a, 103b, 103c) to eject the ink in the second printing, wherein the second ink head (103a, 103b, 103c) is located forward or rearward to the first ink head (103a, 103b, 103c), characterized in that either the control device causes the first ink head (103a, 103b, 103c) and the second ink head (103a, 103b, 103c) to eject the ink in the first printing, and does not cause the first ink head (103a, 103b, 103c) to eject the ink and causes the second ink head (103a, 103b, 103c) to eject the ink in the second printing, or the control device causes the first ink head (103a, 103b, 103c) to eject the ink and does not cause the second ink head (103a, 103b, 103c) to eject the ink in the first printing, and causes the first ink head (103a, 103b, 103c) and the second ink head (103a, 103b, 103c) to eject the ink in the second printing.