Searching the internet I found this set up that looked promising.
In step five, click HTML config, all I get are two errors, error on line 6 and error on line 12
Are these errors due to me running Lion 10.7?
In Finder , click Applications , and then double-click System Preferences .
Click Print & Fax .
Click Open Print Queue , and then click Printer Setup .
Click the Utility tab, and then click Open Printer Utility .
Click HTMLConfig .
Click the Networking tab, and then click Wireless from the list on the left.
Under Communication Mode , click Infrastructure , select your network SSID from the Available Network Names (SSID) list, and then click the << button.
From the Security Mode pop-up menu under Authentication , click WEP or WPA/WPA2 . Your selection depends on which Wireless Security Protocol your network uses.
NOTE:If your network does not have Wireless Security, leave the Security Mode set to Open System (No Authentication) .
Type your WEP/WPA/WPA2 key in the appropriate field, and then click Apply .
In the confirmation box, click OK , and then close the HTML Config and Print Queue windows.
In the Print & Fax window, click your HP product from the list of printers, and then click the Minus sign to remove it from the list.
NOTE:This action removes the USB Connection from the list so that the only entry for your HP product is the Wireless Connection.
Disconnect the USB cable from the product and the computer.
Under Printers , click the Plus sign ( ).
Select your product name with Bonjour as the Kind , and then click Add .
Close the Printers & Fax window.