As almost always, more information is needed.
What exact DLink router, what exact printer model and what Mac OS X version do you use?
Also what are the network settings your printer, your router and your Mac use to talk to each other, besides the obvious WEP protection?