Undefined class constant

Topics: Developer Forum, Project Management Forum, User Forum
Nov 29, 2007 at 2:16 PM
Hi,

I am having the following problem:

Debug Error: 05featuredemo.inc.php line 60 - Undefined class constant 'FORMATDATEYYYYMMDDSLASH'

Where these classes are declared?

Someone help me?

Thanks!!
Tiago Torres
Brasil - Recife-PE
Coordinator
Nov 30, 2007 at 7:24 AM
Try running 05featuredemo.php, this file includes all necessary classes.
Nov 30, 2007 at 1:01 PM
Hi Maartenba,

The file "05featuredemo.php" does an include file (include "05featuredemo.inc.php";) and is precisely in this file that the problem happens. Next the code segment:

file: 05featuredemo.inc.php
line 60: $objPHPExcel->getActiveSheet()->getStyle('D1')->getNumberFormat()->setFormatCode
(PHPExcelStyleNumberFormat::FORMATDATEYYYYMMDDSLASH);

Tiago
Coordinator
Dec 3, 2007 at 12:19 PM
Which PHPExcel version are you using? No problems here...
Dec 3, 2007 at 1:13 PM
I am using PHPExcel 1.5.0 Production.