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

New Post: rewrite excel(.xls) then macro lost

$
0
0

Hi,

I had a excel(A_Result.xls) file with macro, and i use browser access the php ,

the php file only  load xls and save it with any modify.

and then macro in A_Result.xls is lost

Is there any way to accomplish what I'm trying to do? 

 

or tell me what is happened?

 

Thanks very much,

-willcox

 

my code:

$objReader =PHPExcel_IOFactory::createReader("Excel5");
  
$objPHPExcel = $objReader->load($dirTool."/A.xls");

$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, "Excel5");
  
$objWriter->save($dirTool."/A_Result.xls");
 

Viewing all articles
Browse latest Browse all 2707

Trending Articles



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