I am Klaus and I will try to assist you to solve this problem.
Could you please tell me whether your printer get IP when you connect your printer to router? You connect printer to router by wired or wireless?
If your printer got an IP address, can your ping it successful in your PC which is connected to router? If yes, you may need to reinstall the driver of your printer in your PC.
If printer has no IP, you can try to set a static IP for it.
Please have a try, have a nice week.