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

New Post: Create Multiple Worksheet from MySQL Data and loading template

$
0
0

Thank you for the reply.

By the way, can you provide a sample of how to use the copy() method?

Currently, here is my code:

 

$objPHPExcel = new PHPExcel();

 $ws_name = "Worksheet_";

 $i=0;while ($i < 2) {

$objWorksheet = new PHPExcel_Worksheet($objPHPExcel);

$objPHPExcel->addSheet($objWorksheet);

$objWorksheet->setTitle($ws_name.$i);

$objWorksheet->setCellValue('A1', 'Something_'.$i);$i++; //Assuming that this is the data from the database

}

$objPHPExcel->removeSheetByIndex(0); 

 

I do not know how to load the template through the copy() method.


Viewing all articles
Browse latest Browse all 2707

Trending Articles



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