ICode9

精准搜索请尝试: 精确搜索
  • 部署流水线更新composer 报错2022-09-16 20:01:50

    composer update 时候报错 Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires PHP extension ext-zip * but it is missing from your system. Install or enable PHP's zip extension. Problem 2 - ph

  • PHPExcel升级为PhpSpreadsheet的注意事项2022-08-01 19:04:07

    PHPExcel升级为PhpSpreadsheet的注意事项 PHPExcel_Shared_Date \PHPExcel_Shared_Date::ExcelToPHPObject() 升级为 \PhpOffice\PhpSpreadsheet\Shared::excelToDateTimeObject() -- https://github.com/PHPOffice/PHPExcel/blob/1.8/Classes/PHPExcel/Shared/Date.php#L155 --h

  • phpspreadsheet 中文文档(七)技巧和诀窍2022-06-29 12:01:35

    以下页面为您提供了一些使用广泛的PhpSpreadsheet食谱。请注意,这些文件没有提供有关特定PhpSpreadsheet API函数的完整文档,而只是一个起步。如果您需要特定的API函数,请参阅API文档。 例如,设置工作表的页面方向和大小可 将页面方向设置为A4。其他纸张格式(例如US Letter)不在本文档

  • tp6安装、封装phpspreadsheet2022-06-27 14:04:35

    1、安装phpspreadsheet composer require phpoffice/phpspreadsheet 2、封装类 <?php namespace excel; use PHPExcel_IOFactory; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Style\Alignment

  • PhpSpreadsheet导出科学记数转成字符串2022-05-30 17:35:13

    $logistic_code."\t"   加上\t即可转成字符串

  • lavarel 导出excel2022-04-08 14:03:12

      use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; $spreadsheet = new Spreadsheet(); $sheet = $spreadsheet->getActiveSheet(); $sheet->mergeCells('A1:C1');

  • phpoffice PhpSpreadsheet 制作多sheet表格2022-03-21 17:05:43

    phpoffice PhpSpreadsheet 制作多sheet表格 public function quotationExcel($id){        set_time_limit(0);        log_message('error', '进入quotationExcel');//        $unit = $this->unitchen();        $this->CI->load->model('Quo

  • phpspreadsheet常用设置项2021-11-07 23:03:13

    实例化对象 composer 导包 "phpoffice/phpspreadsheet": "^1.11", $spreadsheet = new Spreadsheet(); $sheet = $spreadsheet->getActiveSheet(); 合并单元格 $sheet->mergeCells('A1:J1'); 设置单元格的内容 $spreadsheet->getActiveSheet() ->se

  • phpspreadsheet 读取 Excel 表格问题2021-09-18 14:59:40

    要读取大量数据,需要 ReadFilter,指定读取范围,下面是我的 ReadFilter 类 <?php namespace common\models; class MyExcelReadFilter implements \PhpOffice\PhpSpreadsheet\Reader\IReadFilter { private $startRowNo; // 如 1 private $endRowNo; // 如 1000

  • 用PhpSpreadsheet读取xlsx表格模板进行数据导出2021-09-03 08:33:51

    /** * @param array $dataList 数据列表,为数字索引 * @param string $title 导出文件名 * @param string $tpl excel的模板文件 * @param int $begin 模板的数据起始行数,从1开始计数除去header的行 * @throws \PhpOffice\PhpSpreadsheet\Exception

  • 使用PhpOffice\PhpSpreadsheet 实现Excel多sheet导出2020-05-09 14:58:38

       如图 最近要做一个这样的导出,一个团长对应一个sheet,然后一键导出 使用PhpOffice\PhpSpreadsheet实现   直接上代码 /** * 多sheet的导出 * @author bwy <xxx@xxx.com> * @param [type] $data_array * @return void */ public function xte

  • TP5使用Composer安装PhpSpreadsheet类库实现导入导出2020-03-31 19:00:46

    PhpSpreadsheet是PHPExcel的下一个版本。它打破了兼容性,大大提高了代码库质量(命名空间,PSR合规性,最新PHP语言功能的使用等)。 由于所有努力都转移到了PhpSpreadsheet,因此将不再维护PHPExcel。PHPExcel,补丁和新功能的所有贡献都应该针对PhpSpreadsheet开发分支。 说明:由于PHPExcel已

  • Phpoffice 已经弃用2019-12-09 11:54:37

     Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.使用phpoffice/phpspreadsheet 代替  文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。 __________________________________________________________

  • 将所有文本置于PHPSpreadsheet中,并使单元格扩展以填充上下文2019-11-08 15:39:04

    为了使所有单元格都将上下文设置为居中并自动展开,以便彼此不重叠,我有些挣扎. 所以我想做的是: >将每个单元格中的信息设置为居中,因为这样可以更好地打印到PDF / etc. >根据单元格中的文本数量来扩展单元格.我不希望A中的信息遍历单元格B. 香港专业教育学院尝试过此代码,但它似乎

  • phpspreadsheet 中文文档(二) 结构2019-10-11 14:00:25

    2019年10月11日13:55:41 原理图 自动加载器 PhpSpreadsheet依赖于Composer自动加载器。因此,在独立使用PhpSpreadsheet之前,请确保先运行composer install。或使用将其添加到预先存在的项目中composer require phpoffice/phpspreadsheet。 电子表格在内存中 PhpSpreadsheet的体系结

  • PhpSpreadSheet 读写excel文件2019-10-06 22:01:31

    phpoffice 系列很好用。PhpSpreadSheet取代了原先的phpexcel,用来处理excel文件 https://phpspreadsheet.readthedocs.io/en/latest/ 简单的使用示例: 1、基本操作 注意:新建和修改是不同的类来处理的 use PhpOffice\PhpSpreadsheet\Spreadsheet;use PhpOffice\PhpSpreadsheet\Write

  • PHPExcel和PhpSpreadsheet之间的主要区别是什么?2019-10-06 07:30:24

    在PHPOffice的项目中,有两个与电子表格文件格式相关的项目: PHPExcel PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOp

  • 如何在没有安装的情况下使用PhpSpreadsheet(如PHPExcel)2019-09-30 21:38:44

    根据PhpSpreadsheet Doc,有必要用作曲家安装它. 在我的情况下,我只有一个没有终端但没有Plesk的网站空间.无论如何可以使用PhpSpreadsheet,就像PHPExcel那样你只需将文件放在任何位置?我该怎么办才能让它运行?我发现没有进一步的信息如何只使用FTP webserver访问.解决方法:在您的情况

  • 使用PHPSpreadsheet构建非常大的电子表格2019-09-10 15:40:10

    我正在测试PHPSpreadsheet如何与大型Excel电子表格配合使用.初步测试表明,对于大型电子表格,会很快耗尽内存. 有没有办法逐步编写电子表格? 我有一段旧代码,我已经用了很长时间来创建PHP的电子表格.它使用了一个非常古老的标准,并且是一个更新.但是我的旧代码的一个优点是我可以写入

  • 使用PhpSpreadsheet对Excel文件进行操作2019-07-16 11:54:35

        环境要求 PHP 5.6或更高版本 PHP扩展php_zip PHP扩展php_xml PHP扩展php_gd2     安装 使用composer将PhpSpreadsheet安装到您的项目中: composer require phpoffice/phpspreadsheet     使用 引入PhpSpreadsheet: require 'vendor/autoload.php';use PhpOffice\Ph

  • PhpSpreadsheet处理表格2019-02-03 15:52:49

    介绍:PhpSpreadsheet是PHPExcel的下一个版本。它打破了兼容性,大大提高了代码库质量(命名空间,PSR合规性,最新PHP语言功能的使用等)。由于所有努力都转移到了PhpSpreadsheet,因此将不再维护PHPExcel。PHPExcel,补丁和新功能的所有贡献都应该针对PhpSpreadsheet开发分支。前提:TP5项目中已经

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有