Hello Faheem_68, welcome to the Microsoft community, I'll be happy to help you today;
I understand that you are having problems with the printer in Windows 11;
What exactly is the model and manufacturer of your printer?
Initially I recommend that you try the following;
Access the Control Panel;
Click View by: and change to large icons;
Click Network and Sharing Center;
Click Change advanced sharing settings;
Click on Private and activate the options: Enable network discovery, enable automatic configuration of devices connected to the network and Enable file and printer sharing;
Click on Guest or Public and activate the options: Enable network discovery and Enable file and printer sharing;
Click on All networks and enable the options: Enable sharing so that anyone with network access can read and write files in public folders and Disable password protected sharing;
Click Save Changes;
Now run the printer troubleshooter;
Press Windows key + i and go to System;
Click on Troubleshooting and then on Other Troubleshooters;
Locate Printer and click Run on the right to start troubleshooting;
Now check if the problem is fixed;
Hope this helps, see you soon!