Answer the question
In order to leave comments, you need to log in
How to save template formatting?
There is a task to fill the account from the coming data. With the help of PHPExcel, I threw in such a script.
$c = 'test1.xls';
$objPHPexcel = PHPExcel_IOFactory::load('orig.xlsx');
$objWorksheet = $objPHPexcel->getActiveSheet();
$objWorksheet->getCell('R17C7')->setValue('Тестовое Имя');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPexcel, 'Exce15');
$objWriter->save($c);?>
Answer the question
In order to leave comments, you need to log in
There was a similar problem. I was helped by replacing writer with Excel5
on Excel2007
in the line
Was:
PHPExcel_IOFactory::createWriter($objPHPexcel, 'Exce15');
PHPExcel_IOFactory::createWriter($objPHPexcel, 'Excel2007');
Exce15
, probably meantExcel5
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question