I apologize to inform you that there is not compatible full feature software and drivers for the printer model which you are using as its an obsolete model but still we have few workaround which will enable the printing part on your printer.
After the printer is turned on and ready for use in standalone mode try and connect the USB cable between the printer and computer directly. The computer In OS drivers will automatically load on the computer and you will have a printer icon for HP 2400 series in devices and printesr folder and you can try and check the printing it should work and if the driver installation fails automatically then you can follow this step to load an alternate driver for printing. Check the URL for better assistance: http://support.hp.com/us-en/document/c01796879=
Workaround driver if the above steps doesn't works.
Click on start menu>> devices and printers. Click on add a printer. A wizard will open click on Local printer and click on Next button. On the next window you will be asked to choose the ports. Under drop down of existing ports change the LPT1 to USB virtual printer port and click on next button. Select the Manufacturer as HP and printer as Deskjet 6980 and click on next to install the driver. If asked to for sharing Say No to it. Click on Set as Default printer and Select NO to print test page.
Also if it asks to choose the existing port or replace the port select replace the port.
Once the driver is installed you will be able to see the printer icon under devices and printers named as Deskjet 6980 with a greencheckmark. Right click on that icon and select Printer Properties and select ports tab and check if the port is set to USB 001 or USB virtual printer port and if yes then click on Genreal tab and select print test page and check if the printer prints the test page fine or not.
I understand and would like to mention that as I said In OS drivers are a basic drivers and it have the capability to print and you will be able to scan via Microsoft Paint or from scanners and camera but would not be able to scan using any of the software as the full feature software and driver is needed for that but unfortunately the full feature software and drivers is not available for the unit you are using.