php - Why does the chart disappear when I copy the excel file? -


With PHPExcel 1.6.7, I tried cloning an Axel file, insert a word in the cell of sheet 1 of the new file and save it:

  $ file = "file.xls "; $ Fp = fopen ($ file, "r"); $ ObjReader = new PHPExcel_Reader_Excel5 (); $ Xls = $ objReader- & gt; Load ($ file); // $ xls- & gt; Set ActiveSet Index (0); $ Xls- & gt; GetSheetByName ('Sheet1') - & gt; Set cell value ('A2', 'BBB'); $ Newxls = Clone $ xls; $ Newfile = "newfile.xls"; $ Xlsfile = new PHPExcel_Writer_Excel5 ($ newxls); $ Xlsfile-> Save ($ newfile); The problem is: There should be a chart in Sheet 2, but this chart disappears in the new file (as I am only modifying sheet 1) 

Any PHP? Xpex does not currently support charts, if you open a document with the chart, the charts will not be saved.

method for a workaround

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -