cfspreadsheet在指定列时读取空字符串

时间:2015-01-15 04:47:11

标签: string coldfusion coldfusion-10 cfspreadsheet

我尝试使用cfspreadsheet读取xlsx文件并将其转储到网页上。

代码:

<cfspreadsheet action="read" src="<!--- file directory --->" 
    query="Result" 
    sheet="1"  
    rows="1-4" 
    columns="1-3" 
    headerRow="1" 
    excludeHeaderRow = "true"> 

<cfdump var="#Result#">

cfspreadsheet设法正确读取行,但不是列。读完前三列后,其余列显示为空字符串,如下所示:

   Name   Pet    Tag   col_10           col_11           col_12        ...col_28 
1  John   Woody  E3D   [empty string]   [empty string]  [empty string] 
2  Jane   Worm   E7A   [empty string]   [empty string]  [empty string] 
3  Jake   Worky  E3Q   [empty string]   [empty string]  [empty string]

如何解决上述问题?

*编辑:数据源格式:

    Name   Pet      Tag      Email                     first tag          second tag       .third tag       ds2_det
1  John   Woody  E3D     derp@gmail.com   R23DE5EW    R23DE5EW      R23DE5EW  R286gdegj.*<te>
2  Jane   Worm   E7A    ....                          .....                  .....                     .....
3  Jake   Worky  E3Q      ........                      ....                   ....                     .......

0 个答案:

没有答案