【发布时间】:2014-06-18 23:59:55
【问题描述】:
我在将我的 Google Drive 电子表格与我的 php 页面链接时遇到了一点问题。 我正在使用 Zend Gdata 库。 这是我正在使用的代码:
$query = new Zend_Gdata_Spreadsheets_CellQuery();
$query->setSpreadsheetKey($key);
$cellFeed = $spreadSheetService->getCellFeed($query);
$foglio=array();
foreach($cellFeed as $cellEntry) {
$row = $cellEntry->cell->getRow();
$col = $cellEntry->cell->getColumn();
$val = $cellEntry->cell->getText();
$foglio[$row][$col]=$val;
}
这一切都很好,但有一件事..当代码遇到没有值的行时...它只是跳过提供这些值..例如: 在这里,我的值很长,直到文档末尾。超过 45-50 列,程序只是在 getCellFeed 中跳过它们。当我尝试访问它们时给我错误
如果我像下图一样在开头附近的单元格中写了一些东西,相反,该程序可以完美运行......但我不想为了解决问题而用随机数或字符破坏我的电子表格,建议?
【问题讨论】:
-
与应用程序脚本无关。删除标签
标签: php excel zend-framework gdata