Printing of ticket