标签(空格分隔): PHPExcel 这段时间博主也在用PHPExcel进行项目开发,里面遇到了很多的问题,也总结了很多的经验,这里就记录下来作为自己以后的注意事项
一、phpExcel大数据量情况下内存溢出解决 版本:1.7.6+ 在不进行特殊设置的情况下,phpExcel将读取的单元格信息保存在内存中,我们可以通过
1 PHPExcel_Settings::setCacheStorageMethod()
来设置不同的缓存方式,已达到降低内存消耗的目的!
1、将单元格数据序列化后保存在内存中 1 PHPExcel_CachedObjectStorageFactory::cache_in_memory_serialized;
2、将单元格序列化后再进行Gzip压缩,然后保存在内存中 1 PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip;
3、缓存在临时的磁盘文件中,速度可能会慢一些 1 PHPExcel_CachedObjectStorageFactory::cache_to_discISAM;
4、保存在php://temp 1 PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp;
5、保存在memcache中 1 2 3 4 5 6 7 PHPExcel_CachedObjectStorageFactory::cache_to_memcache $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_memcache; $cacheSettings = array ( 'memcacheServer' => 'localhost' , 'memcachePort' => 11211 , 'cacheTime' => 600 ); PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings);
注意是加在new PHPExcel() 前面:如下1 2 3 4 5 require_once APPPATH .'third_party/PHPExcel/PHPExcel.php' ;$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp; $cacheSettings = array ('memoryCacheSize' =>'16MB' ); PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings); $objPHPExcel = new PHPExcel();
以上转自:这位兄台
二、phpexcel单元格内换行 我说的这个换行不是字多了,自动换行的那种,是在特定位置添加换行符然后注意两点1 2 $objPHPExcel ->setActiveSheetIndex(0 )->setCellValue( 'A4' , “Hello\nWorld”); $objPHPExcel ->setActiveSheetIndex(0 )->setCellValue( 'A4' , “Hello\nWorld”);
一、要有下面的代码配合 1 2 $objPHPExcel->getActiveSheet()->getStyle('A4' )->getAlignment()->setWrapText(true ); $objPHPExcel->getActiveSheet()->getStyle('A4' )->getAlignment()->setWrapText(true );
二、是要换行的字符串Hello\nWorld外面必须是双引号,另外,网上有朋友说,通过以下代码: 1 2 $objPHPExcel->getActiveSheet()->getStyle('A4' )->getAlignment()->setWrapText(true ); $objPHPExcel->getActiveSheet()->getStyle('A4' )->getAlignment()->setWrapText(true );
也可以实现单元格内换行,但是博主在使用后,貌似没有起到作用,只能通过\n的进行换行操作。
三、关于合并单元格的填充 先设置左上角的第一个单元格的值,然后通过mergeCells将单元格合并(左上角:右下角)1 2 3 4 $objPHPExcel->getActiveSheet()->setCellValue("A2" ,$intro_title); $objPHPExcel->getActiveSheet()->mergeCells("A2:Y3" ); $objPHPExcel->getActiveSheet()->setCellValue("A2" ,$intro_title); $objPHPExcel->getActiveSheet()->mergeCells("A2:Y3" );
四、对于load加载中文文件名模板显示找不到模板的Error解决方法: 博主在开发中,发现存在有汉字的模板文件,在LINUX环境下提示无法加载的问题,实际操作中发现是因为乱码造成PHPExcel无法识别,网上有朋友介绍可以使用iconv函数进行GBK转UTF8格式转换,博主测试后发现仍然无法识别,最后解决方案为:1 2 3 4 5 6 $filepath = base64_encode($_SERVER['DOCUMENT_ROOT' ].__ROOT__."/Uploads/excel/汇总数据输出/花名汇总表.xlsx" ); $real_filepath = base64_decode($filepath); $objPHPExcel = PHPExcel_IOFactory::load($real_filepath); $filepath = base64_encode($_SERVER['DOCUMENT_ROOT' ].__ROOT__."/Uploads/excel/汇总数据输出/花名汇总表.xlsx" ); $real_filepath = base64_decode($filepath); $objPHPExcel = PHPExcel_IOFactory::load($real_filepath);
以后如果有更新,就接着这里记录了~~ 常用的API记录,摘自朽木博客,大神的转载~~1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 include 'PHPExcel.php' ;include 'PHPExcel/RichText.php' ; $objPHPExcel = new PHPExcel(); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5' ); $objWriter->save("xxx.xlsx" ); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5' ); header("Pragma: public" ); header("Expires: 0″); header(" Cache-Control:must-revalidate, post-check=0 , pre-check=0 ″);header("Content-Type:application/force-download" ); header("Content-Type:application/vnd.ms-execl" ); header("Content-Type:application/octet-stream" ); header("Content-Type:application/download" ); header('Content-Disposition:attachment;filename="resume.xls"' ); header("Content-Transfer-Encoding:binary" ); $objWriter->save('php://output' ); $rendererName = PHPExcel_Settings::PDF_RENDERER_TCPDF; $rendererLibrary = 'TCPDF' ; $rendererLibraryPath = './Lib/tcpdf/' ; PHPExcel_Settings::setPdfRenderer( $rendererName, $rendererLibraryPath ); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'PDF' ); $objWriter->setSheetIndex(0 ); header("Pragma: public" ); header("Expires: 0″); header(" Cache-Control:must-revalidate, post-check=0 , pre-check=0 ″);header("Content-Type:application/force-download" ); header("Content-Type:application/pdf" ); header("Content-Type:application/octet-stream" ); header("Content-Type:application/download" ); header('Content-Disposition:attachment;filename="resume.pdf"' ); header("Content-Transfer-Encoding:binary" ); $objWriter->save('php://output' ); include 'PHPExcel.php' ;include 'PHPExcel/RichText.php' ; $objPHPExcel = new PHPExcel(); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5' ); $objWriter->save("xxx.xlsx" ); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5' ); header("Pragma: public" ); header("Expires: 0″); header(" Cache-Control:must-revalidate, post-check=0 , pre-check=0 ″);header("Content-Type:application/force-download" ); header("Content-Type:application/vnd.ms-execl" ); header("Content-Type:application/octet-stream" ); header("Content-Type:application/download" ); header('Content-Disposition:attachment;filename="resume.xls"' ); header("Content-Transfer-Encoding:binary" ); $objWriter->save('php://output' ); $rendererName = PHPExcel_Settings::PDF_RENDERER_TCPDF; $rendererLibrary = 'TCPDF' ; $rendererLibraryPath = './Lib/tcpdf/' ; PHPExcel_Settings::setPdfRenderer( $rendererName, $rendererLibraryPath ); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'PDF' ); $objWriter->setSheetIndex(0 ); header("Pragma: public" ); header("Expires: 0″); header(" Cache-Control:must-revalidate, post-check=0 , pre-check=0 ″);header("Content-Type:application/force-download" ); header("Content-Type:application/pdf" ); header("Content-Type:application/octet-stream" ); header("Content-Type:application/download" ); header('Content-Disposition:attachment;filename="resume.pdf"' ); header("Content-Transfer-Encoding:binary" ); $objWriter->save('php://output' ); 设置excel的属性 $objPHPExcel->getProperties()->setCreator("Maarten Balliauw" ); $objPHPExcel->getProperties()->setLastModifiedBy("Maarten Balliauw" ); $objPHPExcel->getProperties()->setTitle("Office 2007 XLSX Test Document" ); $objPHPExcel->getProperties()->setSubject("Office 2007 XLSX Test Document" ); $objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes." ); $objPHPExcel->getProperties()->setKeywords("office 2007 openxml php" ); $objPHPExcel->getProperties()->setCategory("Test result file" ); $objPHPExcel->getProperties()->setCreator("Maarten Balliauw" ); $objPHPExcel->getProperties()->setLastModifiedBy("Maarten Balliauw" ); $objPHPExcel->getProperties()->setTitle("Office 2007 XLSX Test Document" ); $objPHPExcel->getProperties()->setSubject("Office 2007 XLSX Test Document" ); $objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes." ); $objPHPExcel->getProperties()->setKeywords("office 2007 openxml php" ); $objPHPExcel->getProperties()->setCategory("Test result file" ); 其他常用设置 $objPHPExcel->getDefaultStyle()->getFont()->setName('宋体' ); $objPHPExcel->getDefaultStyle()->getFont()->setSize(10 ); $objPHPExcel->setActiveSheetIndex(0 ); $objPHPExcel->getActiveSheet()->setTitle('Simple' ); $objPHPExcel->getActiveSheet()->setCellValue('A1' , 'String' ); $objPHPExcel->getActiveSheet()->setCellValue('A2' , 12 ); $objPHPExcel->getActiveSheet()->setCellValue('A3' , true ); $objPHPExcel->getActiveSheet()->setCellValue('C5' , '=SUM(C2:C4)' ); $objPHPExcel->getActiveSheet()->setCellValue('B8' , '=MIN(B2:C5)' ); $objPHPExcel->getActiveSheet()->mergeCells('A18:E22' ); $objPHPExcel->getActiveSheet()->unmergeCells('A28:B28' ); $objPHPExcel->getActiveSheet()->getProtection()->setSheet(true ); $objPHPExcel->getActiveSheet()->protectCells('A3:E13' , 'PHPExcel' ); echo date('H:i:s' ) . " Set cell number formatsn" ;$objPHPExcel->getActiveSheet()->getStyle('E4' )->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE); $objPHPExcel->getActiveSheet()->duplicateStyle( $objPHPExcel->getActiveSheet()->getStyle('E4' ), 'E5:E13' ); $objPHPExcel->getActiveSheet()->getColumnDimension('B' )->setAutoSize(true ); $objPHPExcel->getActiveSheet()->getColumnDimension('D' )->setWidth(12 ); $objPHPExcel->getActiveSheet()->getRowDimension('6' )->setRowHeight(30 ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setName('Candara' ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setSize(20 ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setBold(true ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->getColor()->setARGB(PHPExcel_Style_Color::COLOR_WHITE); $objPHPExcel->getActiveSheet()->getStyle('E1' )->getFont()->getColor()->setARGB(PHPExcel_Style_Color::COLOR_WHITE); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getFont()->setBold(true ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getFont()->setBold(true ); $objPHPExcel->getActiveSheet()->getStyle('D11' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_RIGHT); $objPHPExcel->getActiveSheet()->getStyle('D12' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('A18' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY); $objPHPExcel->getActiveSheet()->getStyle('A18' )->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('A4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('B4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('C4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('D4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('E4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getBorders()->getLeft()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getBorders()->getTop()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getBorders()->getBottom()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getBorders()->getTop()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getBorders()->getBottom()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getBorders()->getRight()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('A1' )->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID); $objPHPExcel->getActiveSheet()->getStyle('A1' )->getFill()->getStartColor()->setARGB('FF808080' ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFill()->getStartColor()->setARGB('FF808080' ); $objDrawing = new PHPExcel_Worksheet_Drawing(); $objDrawing->setName('Logo' ); $objDrawing->setDescription('Logo' ); $objDrawing->setPath('./images/officelogo.jpg' ); $objDrawing->setHeight(36 ); $objDrawing->setWorksheet($objPHPExcel->getActiveSheet()); $objDrawing = new PHPExcel_Worksheet_Drawing(); $objDrawing->setName('Paid' ); $objDrawing->setDescription('Paid' ); $objDrawing->setPath('./images/paid.png' ); $objDrawing->setCoordinates('B15' ); $objDrawing->setOffsetX(110 ); $objDrawing->setRotation(25 ); $objDrawing->getShadow()->setVisible(true ); $objDrawing->getShadow()->setDirection(45 ); $objDrawing->setWorksheet($objPHPExcel->getActiveSheet()); $objPHPExcel->getActiveSheet()->getCell('J9' )->getHyperlink()->setUrl('http://www.g.cn/' ); echo date('H:i:s' ) . " Create new Worksheet objectn" ;$objPHPExcel->createSheet(); $objWriter = PHPExcel_IOFactory::createWriter($objExcel, 'Excel5' ); $objWriter-save('php://output' ); $objPHPExcel->getDefaultStyle()->getFont()->setName('宋体' ); $objPHPExcel->getDefaultStyle()->getFont()->setSize(10 ); $objPHPExcel->setActiveSheetIndex(0 ); $objPHPExcel->getActiveSheet()->setTitle('Simple' ); $objPHPExcel->getActiveSheet()->setCellValue('A1' , 'String' ); $objPHPExcel->getActiveSheet()->setCellValue('A2' , 12 ); $objPHPExcel->getActiveSheet()->setCellValue('A3' , true ); $objPHPExcel->getActiveSheet()->setCellValue('C5' , '=SUM(C2:C4)' ); $objPHPExcel->getActiveSheet()->setCellValue('B8' , '=MIN(B2:C5)' ); $objPHPExcel->getActiveSheet()->mergeCells('A18:E22' ); $objPHPExcel->getActiveSheet()->unmergeCells('A28:B28' ); $objPHPExcel->getActiveSheet()->getProtection()->setSheet(true ); $objPHPExcel->getActiveSheet()->protectCells('A3:E13' , 'PHPExcel' ); echo date('H:i:s' ) . " Set cell number formatsn" ;$objPHPExcel->getActiveSheet()->getStyle('E4' )->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE); $objPHPExcel->getActiveSheet()->duplicateStyle( $objPHPExcel->getActiveSheet()->getStyle('E4' ), 'E5:E13' ); $objPHPExcel->getActiveSheet()->getColumnDimension('B' )->setAutoSize(true ); $objPHPExcel->getActiveSheet()->getColumnDimension('D' )->setWidth(12 ); $objPHPExcel->getActiveSheet()->getRowDimension('6' )->setRowHeight(30 ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setName('Candara' ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setSize(20 ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setBold(true ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFont()->getColor()->setARGB(PHPExcel_Style_Color::COLOR_WHITE); $objPHPExcel->getActiveSheet()->getStyle('E1' )->getFont()->getColor()->setARGB(PHPExcel_Style_Color::COLOR_WHITE); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getFont()->setBold(true ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getFont()->setBold(true ); $objPHPExcel->getActiveSheet()->getStyle('D11' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_RIGHT); $objPHPExcel->getActiveSheet()->getStyle('D12' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('A18' )->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY); $objPHPExcel->getActiveSheet()->getStyle('A18' )->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('A4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('B4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('C4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('D4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('E4' )->getBorders()->getTop()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getBorders()->getLeft()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getBorders()->getTop()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('D13' )->getBorders()->getBottom()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getBorders()->getTop()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getBorders()->getBottom()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('E13' )->getBorders()->getRight()->getColor()->setARGB('FF993300' ); $objPHPExcel->getActiveSheet()->getStyle('A1' )->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID); $objPHPExcel->getActiveSheet()->getStyle('A1' )->getFill()->getStartColor()->setARGB('FF808080' ); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID); $objPHPExcel->getActiveSheet()->getStyle('B1' )->getFill()->getStartColor()->setARGB('FF808080' ); $objDrawing = new PHPExcel_Worksheet_Drawing(); $objDrawing->setName('Logo' ); $objDrawing->setDescription('Logo' ); $objDrawing->setPath('./images/officelogo.jpg' ); $objDrawing->setHeight(36 ); $objDrawing->setWorksheet($objPHPExcel->getActiveSheet()); $objDrawing = new PHPExcel_Worksheet_Drawing(); $objDrawing->setName('Paid' ); $objDrawing->setDescription('Paid' ); $objDrawing->setPath('./images/paid.png' ); $objDrawing->setCoordinates('B15' ); $objDrawing->setOffsetX(110 ); $objDrawing->setRotation(25 ); $objDrawing->getShadow()->setVisible(true ); $objDrawing->getShadow()->setDirection(45 ); $objDrawing->setWorksheet($objPHPExcel->getActiveSheet()); $objPHPExcel->getActiveSheet()->getCell('J9' )->getHyperlink()->setUrl('http://www.g.cn/' ); echo date('H:i:s' ) . " Create new Worksheet objectn" ;$objPHPExcel->createSheet(); $objWriter = PHPExcel_IOFactory::createWriter($objExcel, 'Excel5' ); $objWriter-save('php://output' );
tcpdf中文乱码的问题 下载字体包,解压至fonts目录 修改字体为1 $pdf->SetFont('droidsansfallback' , '' , 12 );
以上的代码基本在博主的开发中,被当成API文档来看了,实用性很强,这里转载过来,也是基于分享精神给需要的朋友来看吧。原文地址:http://www.xiumu.org/technology/phpexcel-use.shtml
转载请注明: http://cometlj.github.io/blog/phpexcel-problems-encountered-in-the-development-and-precautions.html