Run the Troubleshooting program: You should run a printer troubleshoot program if you are not able to print from the connected HP Printer.
Check the connection between the printer and the device and also make sure the Wi-Fi is connected with your Printer: After completing the troubleshooting steps, if the error still persists, then there might be a problem in the printer itself. You have to make sure the connected printing device is turned on and connected to your PC through the Wi-Fi.
Now you have to choose the Use Printer Online option:- If your HP Printer is still in Offline state, then you have to set the printer online by implementing modifications in the Control Panel and choosing the Use Printer Online option.
Important: The steps above will help you to resolve the issue of printer in an error state HP in Windows 10. In case, the issue continues to bother you, you can contact HP technical support team for technical assistance as they have years of experience, technical skills and knowledge in their respective fields.