Using closedXML C# library, How can I figure out what data is causing this error when trying to save

前端 未结 3 992
逝去的感伤
逝去的感伤 2021-01-18 11:17

I have a C# app that exports to Excel using ClosedXML. It works fine but just ran into an issue where when i hit the :

  var ms = new MemoryStream();
  work         


        
3条回答
  •  时光说笑
    2021-01-18 11:47

    Since ClosedXML is an open source project, the simplest way of tracking the error down would be building it from the source *, and then running your code against the library in debug mode.

    Once you see the full stack trace, you should be able to identify the spot from which the error is coming. Good chances are that it is a bug in the way the ClosedXML project uses Microsoft XML libraries, because the error that you mentioned is reported by a library outside the ClosedXML project.


    * I downloaded the project, and tried building it. Everything in the closedxml-79843.zip package builds correctly.

提交回复
热议问题