Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: How to write in an existing xls file ?

$
0
0
Hi,

I made my code working, but its too slow... it takes about 5 minutes to complete, is there a way to make it faster?
This is my code, I hope someone could help me.
$objPHPexcel = PHPExcel_IOFactory::load('../Documentos/Formato_Pedido_Marco_Sosa.xls');
$objWorksheet = $objPHPexcel->setActiveSheetIndex(0);
$objWorksheet = $objPHPexcel->getActiveSheet(); 
$objWorksheet->getCell('B22')->setValue('5135171'); 
$objWorksheet->getCell('F22')->setValue('4'); 
$objWriter = PHPExcel_IOFactory::createWriter($objPHPexcel,'Excel5'); 
$objWriter->save('../Documentos/Formato_Pedido_Marco_Sosa.xls'); 

$objPHPexcel = PHPExcel_IOFactory::load('../Documentos/Formato_Pedido_Marco_Sosa.xls');
$objWorksheet = $objPHPexcel->setActiveSheetIndex(0);
$objWorksheet = $objPHPexcel->getActiveSheet();

echo '</br>Clave'.$clave = $objWorksheet->getCell('B22')->getValue();

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>