added function to select printfile