Any and all communications between the computers or printer go through the router. You just send print jobs to the shared printer and the router sorts it out automatically.
click here for printer sharing in XP.
click here for help for Vista.
If you need more help let us know the operating system on each of your computers.