Your printer might appear offline if it cannot communicate with your PC. Check to make sure the printer is turned on and connected to the same Wi-Fi network as your PC. To find out if your printer is connected to Wi-Fi, see if your printer's built-in menu has options for checking, or check the printer's manual for instructions about how to add it to a Wi-Fi network. Then, to verify that your printer is not in Use Printer Offline mode, select Start > Settings > Devices > Printers & scanners,select the printer, and select Open queue. Under Printer, make sure Use Printer Offline is not selected.
If you're still having trouble printing, try uninstalling and reinstalling your printer driver. Select Start > Settings > Devices > Printers & scanners,select the printer, and select Remove Device. To reinstall it, select Start > Settings > Devices > Printers & scanners. Then select Add a printer or scanner and allow Windows to find nearby printers. Choose the printer you want and select Add device.