From a command prompt, redirect the output of your program to the printer by typing:
program > prn
BTW, for future posts, there is no need to post all of your code, only the relevant parts. Asking folks to wade through a bunch of code is a sure-fire recipe for getting little to no help.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow