Starting to modify print report generator to move away from global window variables and setting up a dedicated print reporting function