Need help in Gdi dos printing

I would like to print a DOS application on my printer. The problem is it doesn't do anything. Do I need a third party software for this to work? I need someone to teach me GDI DOS printing. I'm on Windows 8 and my printer is an HP PhotoSmart Ink Advantage K501.
