Trouble connecting HP Photosmart D110 wireless printer to D-Link router

We just installed our new all in one modem/wireless router that we received from Verizon yesterday.  The computers connected fine but our HP Photosmart D110 wireless printer will not connect.  We tried many different things.  It connects fine when using the new D-Link with our old wireless router connected.  It will also connect to the modem if there is no security encryption.  Does anyone know how to solve this problem?  Thank you!