Could not load file or assembly 'DocumentFormat.OpenXml

后端 未结 7 1590
时光说笑
时光说笑 2021-01-08 01:15

I\'m keep getting this error is VS2013

Could not load file or assembly \'DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31b

7条回答
  •  忘掉有多难
    2021-01-08 01:38

    You can look this example.

    http://www.aspsnippets.com/Articles/Solution-ASPNet-GridView-Export-to-Excel-The-file-you-are-trying-to-open-is-in-a-different-format-than-specified-by-the-file-extension.aspx

    I download the example and i imported the

    • ClosedXML.dll
    • DocumentFormat.OpenXml.dll

    dlls (realted dlls is allready in project. And i used them). After that my error is gone. You can try.. I dont know why. But the importent is my project is working right now..

提交回复
热议问题