当前位置:网站首页>phpoffice edit excel document
phpoffice edit excel document
2022-07-30 03:59:00 【opfano_o】
//Read the templatetemplate = 'file.xlxs';$objReader = IOFactory::load($template);$objReader->setActiveSheetIndex(0);$objPHPExcel = $objReader->getActiveSheet();$objPHPExcel->setCellValue('A' ,'aaa')->setCellValue('B', 'bbb');ob_end_clean();ob_start();$fileName = 'filename';header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');header('Content-Disposition: attachment;filename="' . $fileName . '"');header('Cache-Control: max-age=0');$writer = IOFactory::createWriter($objReader, 'Xlsx');$writer->save('php://output');
边栏推荐
- 小程序毕设作品之微信积分商城小程序毕业设计成品(2)小程序功能
- mysql structure, index details
- Pytorch framework learning record 2 - the use of TensorBoard
- Solve the problem of compiling and installing gdb-10.1 unistd.h:663:3: error: #error “Please include config.h first.”
- Pytorch框架学习记录6——torch.nn.Module和torch.nn.functional.conv2d的使用
- Gateway routing gateway
- 【驱动】udev为USB转4串口的每个串口起别名
- Basic introduction to protect the network operations
- Nacos Configuration Center
- Problems caused by List getting the difference
猜你喜欢
Redis server启动后会做哪些操作?
[ 云原生之谜 ] 云原生背景 && 定义 && 相关技术详解?
Roperties class configuration file & DOS to view the host network situation
[Switch] Protocol-Oriented Programming in Swift: Introduction
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Product (8) Graduation Design Thesis Template
OpenFeign realize load balance
When the EasyNVR platform is cascaded to the EasyCVR, why can't the video be played after a while?
小程序毕设作品之微信积分商城小程序毕业设计成品(5)任务书
Small application project works WeChat integral mall small program of graduation design (4) the opening report of finished product
Has been empty, a straightforward, continue to copy the top off!
随机推荐
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Works (4) Opening Report
Monitor page deployment
Pytorch框架学习记录6——torch.nn.Module和torch.nn.functional.conv2d的使用
forward与redirect的区别
Redis【超详解!!!】
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Product (8) Graduation Design Thesis Template
小程序毕设作品之微信积分商城小程序毕业设计成品(8)毕业设计论文模板
Solve the problem of compiling and installing gdb-10.1 unistd.h:663:3: error: #error “Please include config.h first.”
使命、愿景、价值观到底有什么区别
The difference between BGP room and ordinary room in Beijing
Redis server启动后会做哪些操作?
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Products (6) Question Opening and Defense PPT
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Work (2) Mini Program Function
Advanced Microservices Cloud Alibaba
发给你的好友,让 TA 请你吃炸鸡!
spicy (two) unit hooks
星光不问赶路人!武汉校区小姐姐三个月成功转行软件测试,收获9k+13薪!
Pytorch framework learning record 4 - the use of datasets (torchvision.dataset)
STM32 SPI+WM8978 voice loopback
Wechat second-hand transaction small program graduation design finished product (1) Development overview