问题标签 [cfspreadsheet]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
coldfusion - 从 ColdFusion 读取电子表格时出现问题
我在阅读从 Microsoft Office 2013 创建的 Excel 工作表 (xls/xlsx) 时遇到问题。
以下是错误:
读取 Excel 时出错:org.apache.poi.EncryptedDocumentException:提供的电子表格似乎是加密的 .xlsx 文件。XSSF 使用前必须解密,HSSF 不能使用。
读取 Excel 时出错:org.apache.poi.hssf.record.RecordFormatException: Unknown encryption info 4。
我试过CF9和CF10。在两个版本上发现相同的错误。另外,我用更新的 POI 3.10 更新了 POI jar 文件,但没有运气。跟随这些链接:
- https://issues.apache.org/bugzilla/show_bug.cgi?id=56564
- https://issues.apache.org/bugzilla/show_bug.cgi?id=35897
任何帮助将不胜感激。
mysql - CFloop 处理速度极慢
我正在自学 CF 开发,并在学习时使用共享的 CF 托管站点进行测试。
我有一个包含 2500 多条数据记录的电子表格,大约 15 列。电子表格包含对该应用程序的基础至关重要的数据。它是离线维护的,并定期使用cffile
. 上传后,电子表格将逐行导入 MySQL 表中。
问题是它花费的时间太长了。例如,它当前正在运行。在过去的 43 分钟内,只有 2500 条记录中的 192 条被添加到 MySQL 表中。有没有更有效的方法来做到这一点?
如果您查看下面的代码,它会在cfloop
其中运行 cfspreadsheet 标记,并检索当前行。然后将该行作为“CSV”数据添加到 MySQL 表中。
关于如何更有效地做到这一点的任何建议?
excel - Excel Reference Cell value
I am trying to read the values from excel A which has the referenced data from another excel sheet B.
Code so far:
Dump Result : The values in all the columns are not displayed correctly.
Tried accessing one of the values through spreadsheet functions; still the same issue exists.
Output: The value is: Sheet1!$A$1 and formula is Sheet1!$A$1
It looks like spreadsheet functions does not support the reference data values.
How can I access the values from the excel cells having referenced data?
Edit 1: Steps to replicate what I want.
- There are two Excel sheets (Excel_A.xlsx and Excel_B.xlsx).
- Excel_B.xlsx : Insert a number 123 in cell A1.
- Excel_A.xlsx : Reference the A1 cell of Excel_B in Cell A10. So formula in A10 will be
='Path to [Excel_B.xlsx]Sheet1'!$A$1
- Now I need to see the value of cell A10 in excel_A programmatically.
How can I achieve this since the <cfscript>
code is not returning the value and shows just the half-formula?
excel - CF电子表格循环
我有一个关于 cfspreadsheet 的问题......所以我正在使用 cfspreadshseet 创建用于报告目的的 excel 电子表格。我的页面允许用户从数据库中选择要包含在报告中的任何列。所以这里有一个例子:
电子表格可能如下所示:
名字---姓氏---组织---地址---城市---州---邮编---关注
Joe Smith Sample 12 主要 denver co 80513 关注点在这里
我的问题是,如果 Joe 有超过 1 个问题,我会得到多行包含 joe 的信息……有没有办法可以循环关注问题并且只有 1 行供 joe 使用?
谢谢,
史蒂夫
excel - ColdFusion11:CFContent 不写入可打开的 excel 文件
我正在尝试在 ColdFusion 中执行一项简单的任务:生成一个 excel 文件并将其下载到浏览器中。我有这个:
在 CF9 上确实可以完美运行,但在 CF11 上却不行。打开文件时,它说:
Die Datei 'NiceName.xlsx' kann von Excel nicht geöffnet werden, das Dateiformat oder die Dateierweiterung ungültig ist。Überprüfen Sie, ob die Datei beschädigt ist und ob die Dateierweiterung dem Dateiformat entspricht。
这意味着:
Excel 无法打开文件“NiceName.xlsx”,因为文件格式或结尾无效。请验证文件是否已损坏以及文件结尾是否与文件格式相对应。
我可以:
<cfmailparam>
表并通过邮件接收文件。<cfspreadsheet action="write">
工作表并在服务器上接收文件。
在这两种情况下,文件都是可读的。
我努力了:
<cfspreadsheet action="write">
工作表,然后使用<cfcontent file="#pathToFile#">
,这是行不通的。- 检查我的 IIS 的 URL-Rewrite-Rules。
- 检查我的 IIS 的 .xlsx MIME 类型。这与我的代码中的相同。
- 最后添加了 a
<cfabort>
,所以不会发生其他任何事情。
但没有任何帮助。
我在用着:
- ColdFusion 11 (11,0,0,289974) 与 Tomcat 7.0.52.0
- Windows Server 2008 R2 标准版 64 位
- 微软办公软件 2013
- IIS 7.5.7600.16385
string - 指定列时,cfspreadsheet 正在读取空字符串
我尝试使用 cfspreadsheet 读取 xlsx 文件并将其转储到网页上。
代码:
cfspreadsheet 设法正确读取行,但不能正确读取列。读取前三列后,其余列显示为空字符串,如下所示:
我该如何解决上述问题?
*编辑:数据源格式:
excel - cfspreadsheet - 如何在不显示列标题的情况下写入 excel
我正在使用 cfspreadsheet(在 ColdFusion 中)将查询结果写入 excel 电子表格。客户不希望在 Excel 表上显示标题行。excludeheaderrow 属性仅用于读取。有谁知道是否可以不将标题行写入电子表格?
谢谢!
coldfusion - CF10 CFSPREADSHEET 列名 - 转义特殊字符
所以显然我不能使用任何特殊字符,甚至不能用点缩写来设置cfspreadsheet中的列名。有没有办法解决这个问题?我基本上是使用 cfspreadsheet 将我的查询结果转储到一个 excel 文件中,并且需要保留某些字符,例如点号来缩写某些术语。将其提升到一个新的水平并在这些列名中使用特殊字符会很好。有解决办法吗?
代码示例。
coldfusion - 从 cfspreadsheet 返回的查询创建的查询没有正确的值
今天,我在从电子表格中读取 vlue 并尝试根据条件过滤它们并从过滤后的数据创建电子表格时遇到了一个非常奇怪的案例。这是我的步骤
阅读 Excel 表
/li>创建持有查询
/li>根据条件过滤 Excel 返回的查询并将有效的查询添加到新的控股查询中
/li>创建新电子表格
/li>
但是我在我的 excel 表中得到以下内容
请帮助解决这个问题。