Fix Excel for Web Not Printing Files with Commas in Name
Question details
Users are unable to print workbooks directly from Excel for the web if the file name contains a comma, triggering a server connection error.
- Product
- Excel for the Web
- Device & OS
- Windows 10, macOS
- Scenario
- Attempting to print an online spreadsheet directly from a web browser.
- Observed behavior
- Excel for the web fails to print the document and displays the error message: "We're not able to contact the server."
Ensure you have permission to rename files in your OneDrive or SharePoint directory, and verify that your local printer is turned on and connected to your network.
Remove Commas from the File Name
The most effective workaround is to eliminate commas from the workbook's name before attempting to print it from the browser.
Due to a specific handling issue with web URLs and file paths in Excel for the web, special characters like commas can interrupt the server requests required to generate a print preview.
Navigate to the OneDrive or SharePoint web folder where your Excel workbook is currently saved.
Right-click the file and select "Rename". Delete any commas from the file name (for example, change "Q3_Budget, Final.xlsx" to "Q3_Budget_Final.xlsx").
Click the newly renamed file to open it in Excel for the web. Go to File > Print and try printing the document again.

Download and Print Using a Desktop Application
If you cannot rename the file due to shared permissions, downloading the file and printing it locally bypasses the web server error.
Use Safari Browser on a Mac
The printing bug primarily affects Windows users using certain browsers. Mac users can successfully print the same files using Safari.
Try WPS Office for Reliable Desktop Printing
If web-based glitches like the comma file name error are disrupting your workflow, WPS Office offers a highly stable, free desktop alternative. You can easily download your Excel files and print them flawlessly from WPS Office, avoiding browser-specific server errors entirely.

Frequently Asked Questions
Why does a comma in the filename cause a server error in Excel for the web?
In some web environments, special characters like commas in URLs or file paths can interrupt the backend server requests required to generate a print preview, resulting in the "We're not able to contact the server" error.
Will clearing my browser cache fix this printing issue?
While clearing the browser cache can resolve many temporary web glitches, it will not fix the comma-related printing bug in Excel for the web. The file must be renamed or printed from a desktop application.
Does this issue affect desktop versions of spreadsheet software?
No, this is specifically an issue with Excel for the web. Desktop applications, including WPS Office and the desktop version of Excel, can easily print files with commas in their names without any server errors.
Can I print the file if I share it with someone else?
Sharing the file will not fix the web printing issue. The recipient will experience the same server error when trying to print from their browser unless they download the file or you remove the comma from the file name first.




