本文介绍了当我尝试打开excel文件时,文件已损坏将出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用CarlosAg.ExcelXmlWriter工具生成excel文件时。在asp.net中生成文件后没有错误。
然后我尝试打开excel文件Microsoft Excel弹出错误,如
Hi,
when i generate a excel file using CarlosAg.ExcelXmlWriter tool. After generating the file without error in asp.net.
Then I try open the excel file the Microsoft Excel popup error like
The file format and extension of report.xls don't match. The file could be corrupted or unsafe. Unless you trust its source,don't open it. Do you want to open it anyway?
我不知道该怎么办。请帮我解决这个问题
我尝试过:
我试图用CarlosAg生成excel文件。 ExcelXmlWriter工具。
I don't know what to do.Please help me to solve this
What I have tried:
Am trying to generate the excel file with CarlosAg.ExcelXmlWriter tool.
推荐答案
这篇关于当我尝试打开excel文件时,文件已损坏将出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!