Your printer might appear offline if it can't communicate with your PC. Try following these steps to get your printer back online.
1. Check to make sure the printer is turned on and connected to the same Wi-Fi network as your device.
To find out if your printer is connected to Wi-Fi, see if your printer's built-in menu has options for checking its Wi-Fi connection, or check the printer's manual for instructions about how to add it to a Wi-Fi network.
Turn off your printer and unplug it, wait 30 seconds, plug your printer back in, and then turn the printer back on. Sometimes power-cycling your printer like this can resolve the issue.
Select the Start button, and then select Settings > Devices > Printers & scanners . Select your printer and then select Open queue. Under Printer, select Set As Default Printer, and clear Pause Printing and Use Printer Offline if they are selected. If you see a message that says, "Windows will stop managing your default printer for you," select OK.
Note: If you select OK, Windows will stop automatically setting the last printer you used as your default printer. To re-enable this feature, select the Start button, and then select Settings > Devices > Printers & scanners > Let Windows manage my default printer.
Select the Start button, and then select Settings > Devices > Printers & scanners . Select your printer and then select Open queue. Under Document Name, select any documents listed, and under Document, select Cancel.
In the search box on the taskbar, type services, and then select Services in the list of results. Find the Print Spooler service, right-click it, and select Restart.
Select the Start button, and then select Settings > Devices > Printers & scanners . Select your printer, select Remove device, and then select Yes. Under Printers & scanners, select Add a printer or scanner and follow the instructions to re-add the printer.
Rebooting your PC can sometimes help to refresh the services and components necessary for your device to communicate with your printer.
If these steps don't change your printer’s status to “online,” see other steps to take at Fix printer connection and printing problems in Windows 10.