This can be a result of Windows account permissions. To set permissions follow the below steps:
1) Press Windows key + R
2) Type: control printers
3) Press <Enter>
4) Select the printer you are trying to print to
5) Click Print server properties
6) Select the Security tab
7) Click Advanced
8) Scroll through the list and select the Windows account
9) Click Add
10) Select the account in Group or User names
11) Allow all permissions on the printer
12) Click Apply, then OK