closedxml

OpenXML libraries (alternatives to ClosedXML) [closed]

本小妞迷上赌 提交于 2019-11-30 03:39:06
What are some libraries that extend OpenXML (or add a kind of abstraction layer to OpenXML) similar to ClosedXML? I'm looking for a commercial or freeware tool with at least 1.0 version. Thank you in advance. Berat Bilgin Open-Source: Have you looked at EPPlus ? Slogan: Create advanced Excel 2007/2010 spreadsheets on the server. License: GNU Library General Public License (LGPL). I've been evaluating EPPlus, ClosedXML, and SpreadsheetLight over the past week. All three are really great libraries that make working with the extremely convoluted OpenXML a breeze. I've decided to go with EPPlus

OpenXML libraries (alternatives to ClosedXML) [closed]

和自甴很熟 提交于 2019-11-29 01:09:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . What are some libraries that extend OpenXML (or add a kind of abstraction layer to OpenXML) similar to ClosedXML? I'm looking for a commercial or freeware tool with at least 1.0 version. Thank you in advance. 回答1: Open-Source: Have you looked at EPPlus? Slogan: Create advanced Excel 2007/2010 spreadsheets on the

Reading from Excel File using ClosedXML

老子叫甜甜 提交于 2019-11-29 00:45:22
问题 My Excel file is not in tabular data. I am trying to read from an excel file. I have sections within my excel file that are tabular. I need to loop through rows 3 to 20 which are tabular and read the data. Here is party of my code: string fileName = "C:\\Folder1\\Prev.xlsx"; var workbook = new XLWorkbook(fileName); var ws1 = workbook.Worksheet(1); How do I loop through rows 3 to 20 and read columns 3,4, 6, 7, 8? Also if a row is empty, how do I determine that so I can skip over it without

Download file with ClosedXML

浪子不回头ぞ 提交于 2019-11-27 13:57:50
All How can I download a file so the user sees that it is downloading (like with a stream?) I am currently using ClosedXML, but if I use the SaveAs method, I have to give a hard-coded URL, and if I just give the file name it does not automatically download to the download folder. The method below works great, but I have to create my own excel file, which is based upon HTML, and the file grows way too large than it should, when I use ClosedXML the file is only 50% or less from the size of the code below: However, the download behaviour is how I would like it to be. Is there a way I can convert

Export big amount of data from XLSX - OutOfMemoryException

余生长醉 提交于 2019-11-26 17:48:50
I am approaching to export a big amount of data (115.000 rows x 30 columnd) in Excel OpenXML Format (xlsx). I am using some libraries like DocumentFormat.OpenXML, ClosedXML, NPOI. With each of this, OutOfMemoryException is thrown because the representation of the sheet in the memory causes an exponential memory increase. Also closing the document file every 1000rows (and releasing memory), the next loading causes memory increase. Is there a more performant way to export data in xlsx without occupy a lot of memory? The OpenXML SDK is the right tool for this job but you need to be careful to use

Download file with ClosedXML

人盡茶涼 提交于 2019-11-26 16:23:30
问题 All How can I download a file so the user sees that it is downloading (like with a stream?) I am currently using ClosedXML, but if I use the SaveAs method, I have to give a hard-coded URL, and if I just give the file name it does not automatically download to the download folder. The method below works great, but I have to create my own excel file, which is based upon HTML, and the file grows way too large than it should, when I use ClosedXML the file is only 50% or less from the size of the

Export big amount of data from XLSX - OutOfMemoryException

▼魔方 西西 提交于 2019-11-26 05:36:02
问题 I am approaching to export a big amount of data (115.000 rows x 30 columnd) in Excel OpenXML Format (xlsx). I am using some libraries like DocumentFormat.OpenXML, ClosedXML, NPOI. With each of this, OutOfMemoryException is thrown because the representation of the sheet in the memory causes an exponential memory increase. Also closing the document file every 1000rows (and releasing memory), the next loading causes memory increase. Is there a more performant way to export data in xlsx without