【源】phpspreadsheet的源码注解

github:
https://github.com/PHPOffice/PhpSpreadsheet/blob/master/src/PhpSpreadsheet/Worksheet/Worksheet.php

// file: vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php [1950]
 * Freeze Pane.
 * Examples:
 *     - A2 will freeze the rows above cell A2 (i.e row 1)
 *     - B1 will freeze the columns to the left of cell B1 (i.e column A)
 *     - B2 will freeze the rows above and to the left of cell B2 (i.e row 1 and column A)
 * 示例:
 *     -A2将冻结单元格A2上方的行(即第1行)
 *     -B1将冻结单元格B1左侧的列(即A列)
 *     -B2将冻结单元格B2上方和左侧的行(即第1行和A列)
 * @param null|string $cell Position of the split
 * @param null|string $topLeftCell default position of the right bottom pane
 * @return $this
public function freezePane($cell, $topLeftCell = null)
                                    在"漫步繁华街"-https://blog.csdn.net/xiezhongyuan07/article/details/82857631的基础上,增加了列的冻结功能
同进行了抽象,提取,封装了一个独立的类,可以直接使用,只需要设定表头数据,内容数据,冻结列数据以及各个的颜色即可。
在这里感谢【漫步繁华街】的代码分享。
                                    您也可以折叠列。请注意,您还应该将列设置为不可见,否则折叠将在Excel 2007中不可见。请参阅“分组/概述一行”部分以获取有关折叠的完整示例。您可以指示PhpSpreadsheet将摘要添加到右侧(默认)或左侧。您也可以折叠该行。请注意,您还应该将行设置为不可见,否则折叠将在Excel 2007中不可见。$i 
                                    $sqlStr="select a1.run_id,a1.FID,a1.OperateTime,a1.RunMonth,a1.OperateNum,a2.run_name,a2.begin_time,a2.data_5,a2.data_19,a2.data_38,a2.data_49,T1.CostMxIndex,T1.CostNum,T1.CostCheckNum,T1.CostName,T1....
                                    1、PhpSpreadsheet 是什么PhpSpreadsheet是一个用纯PHP编写的库,提供了一组类,使您可以读取和写入不同的电子表格文件格式PhpSpreadsheet提供了丰富的API接口,可以设置诸多单元格以及文档属性,包括样式、图片、日期、函数等等诸多应用,总之你想要什么样的Excel表格,PhpSpreadsheet都能做到使用 PhpSpreadsheet 开发的PHP要求 7.1或更高版本PhpSpreadsheet 支持链式操作。
                                    固定停留在某个标签位置有候你并不知道要停留在的位置距离底部有多少像素,你只知道它需要停在这个位置,那么你只需要知道这里的元素标签是什么就可以了$(function(){var fixfooter = $(".fix-footer")fixfooter.scrollFix({endPos:"#fixFooter"})})这只是内容,效果看侧栏Lorem ipsum dolor sit amet, ...
                                     前些日子,在公司使用的Outlook是发现邮件规则不能编辑,也不能修改,相应的按钮都为灰色不能使用状态,相应的邮件规则也不能正常运行, 解決方法如下:“开始”->“运行”-> 在“打开”中输入"outlook /cleanrules",确定,这样会打开outlook,注意,原来的所有邮件规则都会被删掉,然后新建邮件规则,这样新建的规则则能够正常的修改,删除,运行。 注意,在执行之前,最好先备份一
                                    JExcel数据字段比给的字段(columns)多会导致空白列的问题经过漫长的调试, 总结解决的结果在jexcel.js文件的370行, 照下面这样注释掉就可以解决原因是Object.keys(obj.options.data[0]).length会获取数据中key的个数, 并且在for循环中有添加obj.options.columns的动作, 所以会导致空白列(字段)的出现...
                                    PHPExcel是一款功能比较强大的操作微软excelPHP插件,在导出数据为了方便查看,有需要锁定表头,也就是在滚动查看数据,表头始终出现在视野中,而不会消失。
调用方法如下:
$objPHPExcel = new PHPExcel();
$objPHPExcel->setActiveSheetIndex(0);
$objPHPExcel->getActiveSheet()->fre
                                    PhpSpreadsheet提供了丰富的API接口,可以设置诸多单元格以及文档属性,包括样式、图片、日期、函数等等诸多应用,总之你想要什么样的Excel表格,PhpSpreadsheet都能做到。                                       	在调试设置,确保引入了正确的文件并实例化。use PhpOffice\PhpSpreadsheet\Spreadsheet...
   use PhpOffice\PhpSpreadsheet\Spreadsheet;
   //Xlsx类  保存文件功能类
   use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
   // 实例化 Spreadsheet 对象
   $spreadsheet = new Spreadsheet();
2、 Spreadsh