Wi-Fi printing

When asked to print it gets going but the printer icon in the dock starts to bounce, opening the printer icon the panel that appears states, Printer is not connected and looking for a printer.
In the Print preferences it say the printer is offline, in the printing panel there is a printer offline symbol.
Brian