草庐IT

ExcelLibrary

全部标签

c# - 使用 ExcelLibrary 在 C# 中读取 Excel .xlsx 文件时出现 OutOfMemoryException

我正在尝试使用C#在VisualStudioWindows应用程序中读取excel文件(.xlsx)。我正在使用此链接ExcelLibrary中的GoogleExcel库.我使用以下代码在单击按钮时从excel文件中读取。我在VisualStudio2012Professional中使用以下代码,usingExcelLibrary.SpreadSheet;usingExcelLibrary.BinaryDrawingFormat;usingExcelLibrary.BinaryFileFormat;usingExcelLibrary.CompoundDocumentFormat;nam

c# - 无法打开用 excelLibrary 生成的 excel 文件

我正在使用excelLibrary以编程方式创建excel文件,但当我尝试在MicrosoftOfficeExcel中打开生成的文件时出现文件格式错误。我看过thishasbeenreported但仍然没有答案。我使用Office2010,我可以打开任何其他.xls(97-2003文件格式),但使用excelLibrary生成的那些。我也尝试过OpenOffice,但仍然无法打开生成的文件。我没有尝试在Office97-2003中打开它们。只需尝试samplecode重现错误。有没有人找到如何使用这个库而不遇到这个问题? 最佳答案