How to print in Dell Dimension 5150 with Ubuntu 14.04

Hi everybody,
I have a laptop Dell Dimension 5150 with windows XP OS. I don't want to use XP any more. So I have installed Ubuntu 14.04. Everything looks fine with Ubuntu 14.04 except printing. My printer is HP PhotosmartC7280. First, I am able to print one test page. Afterwards, I am unable to print any pages. I have given some other printer names as default printer, But nothing worked. I am completely new to Linux. Can somebody please give me any steps how to print pages in Ubuntu?
Thanks in advance for your help.
