作者:Mr-Leo-Chan | 来源:互联网 | 2023-09-05 17:16
IamtryingtoextractTEXTfroma.xlsxExcelfileusingNPOI.我试图使用NPOI从.xlsxExcel文件中提取TEXT。Bel
I am trying to extract TEXT from a .xlsx
Excel file using NPOI.
我试图使用NPOI从.xlsx Excel文件中提取TEXT。
Below is the link of sample Excel file:
以下是Excel文件示例的链接:
http://s29.postimg.org/i7rtrucaf/excel_File.png
The function ExcelDocumentToText
extracts all the cell values, but not the cell which contains INR (cell F2)
ExcelDocumentToText函数提取所有单元格值,但不提取包含INR的单元格(单元格F2)
static void ExcelDocumentToText(string path = @"..\..\..\01.xlsx")
{
StringBuilder textOfExcelDocumnet = new StringBuilder();
ISheet sheet = null; IRow headerRow = null; IEnumerator allRows = null;
using (FileStream ExcelFile = new FileStream(path, FileMode.Open, FileAccess.Read))
xlsReaderObject = new XSSFWorkbook(ExcelFile);
for (int j = 0; j
Could anyone please have some solution of this query?
有人可以请一些这个查询的解决方案吗?
1 个解决方案