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

New Post: Add all rows to excel spread sheet

$
0
0
If you want to fill several lines in your Excel file, should you change coordinates.
$i=2;
$S=$objPHPExcel->getActiveSheet();
while($row=extractRow()){
$S->setCellValue('B'.$i, $row['UNIT'])
->setCellValue('C'.$i, $row['NUMBER']); // and all others keys (Alternative: Use fromArray either for a line, or for all of the data within the possibilities)
++$i;
}
extractRow() is replaced by the function that allows to fill $row

Viewing all articles
Browse latest Browse all 2707

Trending Articles



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