cfspreadsheet无法读取空行 [英] cfspreadsheet fails to read empty rows

查看:190
本文介绍了cfspreadsheet无法读取空行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 给出包含N个逻辑行的电子表格

  2. 一行完全为空*

  3. cfspreadsheet action =read将返回一个包含N-1的 RecordCount 的查询。

  1. Given a spreadsheet with N logical rows
  2. Where one row is totally blank*
  3. cfspreadsheet action="read" will return a query with a RecordCount of N - 1.


    *一个完全空白的行是一个行,其中每个单元格实际上是空白的。请参阅POI文档中的 CELL_TYPE_BLANK

cfspreadsheet 是否可以包含空行?

推荐答案

否。由于电子表格数据并不总是连续的,因此< cfspreadsheet action =readquery =queryName...> < cfspreadsheet action =readformat =csv | html..> 故意屏蔽空白行,以避免包括大量的空白噪声。因此,除非一行至少有一个非空白单元格,否则不会被检测到。 AFAIK,没有设置来覆盖这种行为。您必须进入底层的POI工作簿并自行滚动。

No. Since spreadsheet data is not always contiguous, <cfspreadsheet action="read" query="queryName" ...> and <cfspreadsheet action="read" format="csv|html" ..> deliberately screen out blank rows to avoid including tons of white space noise. So unless a row has at least one non blank cell, it will not be detected. AFAIK, there is no setting to override that behavior. You would have to tap into the underlying POI workbook and roll-your-own.

这篇关于cfspreadsheet无法读取空行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆