have two printers and both have same issue

sometime when i print it dont at all i goto print dialog it shows printer offline even though USB is connected and then i click on Printer and it shows Use Printer offline option checked so i unchecks it and then it prints

however sometimes Use Printer offline option is grayed out and i have to restart the laptop and then it prints