I'm making a console application in .NET framework that uploads a .XLSX file to Google Drive (converting it to Google Sheets format in that process) and also downloads the Google Sheets to .XLSX format.
Basically I'm trying to sync a local drive with Google Drive, preserving all formatting of the sheets.
I've used the Google Drive API for .NET framework to do this and it is working pretty well, except that when downloading Google Sheets to a .XLSX file, the .XLSX file downloaded is opened without any problem by Excel 2007 but shows the following error when opened with Excel 2016:
We found a problem with some content in the file. Do you want us to try to recover as much as we can?
On clicking "Yes", Excel opens the file successfully, but shows a message with an error log. I opened the error log, and there were no details in it except a mention of "Conditional Formatting". Further, a few freeze rows in the original Google Sheets were not freezed anymore in Excel 2016, but were intact when the file was opened in Excel 2007.
Do you have any suggestions to make the .XLSX file downloaded from Google Sheets compatible with Excel 2016, or a totally different approach that will eliminate the problem with different versions and different formats?