In the wireless printer's setup menu (on the printer itself) you have to enter the wireless key or passphrase that is already set up on the router. This enables the printer to connect wirelessly to the router.
If your laptop is successfully connected wirelessly to that same router, and provided you've installed the printer software on your laptop, you should be able to access the printer from it.