Follow these steps. They worked for me.

1. Click on Setup.
2. Go to Maintenance.
3. Choose Clean Printhead, Align Printer, then Print Test Page
4. After that try printing and it should work....