【问题标题】:PhpSpreadsheet vs PhpExcel active cell start numbers. What are the correct values?PhpSpreadsheet 与 PhpExcel 活动单元格起始编号。什么是正确的价值观?
【发布时间】:2018-06-08 15:50:37
【问题描述】:

我们以前使用 Excel,但现在开始使用电子表格,因为它是未来。 最近在我们的应用程序中,我必须做出改变,

这是我们的excel文件逻辑。

来自

var $excel_start_row_index=1;
var $excel_start_column_index=0;

var $excel_start_row_index=1;
var $excel_start_column_index=1;

因为我们没有显示一列。也许我认为它发生在我们当前的作曲家更新中。所以我看到了如何设置样式的其他一些变化,并且 applyFromArray 具有用于设置背景颜色的新样式数组。库中的这种更改也是为了启动单元格。

我明白了

namespace PhpOffice\PhpSpreadsheet\Worksheet;
/**
 * Active cell. (Only one!).
 *
 * @var string
 */
private $activeCell = 'A1';


But where can I find the numerical representation of it? Like $activeColumn = 0 , $activeRow = 1. something like it.

这里“A”的等价物是0还是1。

在这里Github Issue See the second comment by Mark Baker 他说它在 PhpExcel 中以 0 开头。在 PhpSpreadsheet 中是一样的吗?

【问题讨论】:

    标签: phpexcel phpoffice phpspreadsheet


    【解决方案1】:

    经过多次讨论和辩论,决定从1开始列索引,以尝试更一致https://gitter.im/PHPOffice/PhpSpreadsheet?at=59fa9f27976e63937e17fd27

    【讨论】:

      猜你喜欢
      • 2018-09-15
      • 1970-01-01
      • 2017-04-28
      • 1970-01-01
      • 2017-05-15
      • 2013-11-18
      • 2018-06-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多