Hi,
What specific error code are you getting when printing?
Also, what is the exact make and model of your printer?
In the meantime, try the following:
Click the Start button, then go to Settings.
In Settings, select Update & Security
Scroll down and click Troubleshoot.
Select Other troubleshooters.
Look for Printer, then click Run.
If the issue persists, I recommend visiting your printer manufacturer’s support website and downloading then installing the latest driver for your device, restart your printer and computer and check.