Step 1: First make sure that the printer on the XP machine is shared. You can do this by right-clicking on the printer and choosing Sharing.
share printer xp to 7
Click the Share this printer radio button and give your printer a share name. Make sure is less than 8 characters and does not contain any symbols.
share printer
Step 2: Make sure you can see the printer share from the network browsing area in Windows 7. You can do this by going to Control Panel and clicking on Network and Internet.
win 7 to xp printer sharing
Then click on View network computers and devices under Network and Sharing Center.
printer sharing win 7
At this point, you should see the name of your XP computer in the list of computers. Mine XP machine is called Aseem.
network printer sharing
Double-click on the computer name and you should see your shared printer in the list. Here you can try to add the printer by right-clicking on it and choosing Connect.
connect to printer
If everything goes perfectly, Windows 7 should automatically add the printer to your set of printers. However, if you get a message like “Cannot connect to printer”, follow the next steps.
Step 3: Click on Start and then click on Devices and Printers. At the top, click on the Add a printer link.
add printer win 7
Step 4: Next choose Add a local printer. Yes, that sounds counter-intuitive, but this is what you have to do!
local printer win 7
Step 5: Next, click Create a new port and choose Local port from the list of options.
create new local port
Step 6:  Click Next and in the Port name box, type in the path to the shared printer. It should be something like \\Aseem\HPXP, where Aseem is the name of your XP machine and HPXP is the shared name of the printer.
printer share name
Step 7: Now choose the printer driver from the list or download the latest driver for the printer and choose Have Disk. Note that if you printer is a little older, it’s a good idea to download the Windows 7 driver for the printer and click Have Disk.
add prin to win 7
That’s it! Windows 7 will load the driver and you’ll be able to print to the XP machine from Windows 7! The main things to remember are sharing the XP printer and downloading the latest driver for the printer on the Windows 7 machine.