Welcome Guest, Not a member yet? Register   Sign In
phpexcel problem
#5

[eluser]CodeIgniteMe[/eluser]
[quote author="Damjan" date="1340264639"][quote author="MRosenello" date="1340214923"]Can you post the content of Excel2007.php? It looks like you are declaring the same class twice in there. You can only declare a class once.

-Mike[/quote]

I don't make changes to file Excel2007.php except renaming class name to file name, PHPExcel_Writer_Excel2007 to Excel2007. Excel2007 have about 500 line of code. 36. line of code is:

class Excel2007 implements PHPExcel_Writer_IWriter

[quote author="CodeIgniteMe" date=""]how are you including your Excel2007 library? where is your web root path?[/quote]

I have copy Excel2007 to application/libraries/PHPExcel/Writer folder and in my application
$this->load->library(‘PHPExcel/Writer/Excel2007’);[/quote]

OK., so all you will have to do is change the name of your new class. maybe add underscore on it

class Excel_2007


Messages In This Thread
phpexcel problem - by El Forum - 06-20-2012, 03:50 AM
phpexcel problem - by El Forum - 06-20-2012, 10:55 AM
phpexcel problem - by El Forum - 06-20-2012, 09:02 PM
phpexcel problem - by El Forum - 06-21-2012, 12:43 AM
phpexcel problem - by El Forum - 06-21-2012, 12:57 AM
phpexcel problem - by El Forum - 06-21-2012, 01:26 AM
phpexcel problem - by El Forum - 06-21-2012, 01:37 AM
phpexcel problem - by El Forum - 06-21-2012, 02:12 AM
phpexcel problem - by El Forum - 06-21-2012, 02:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB