Hi!
You only changed the class names, include-links and the debug-function from PEARs to Cakes. I'm trying to get it to work in Cake 1.2, I had set Config::Debug to 0. So Excel displays an spreadsheet with everything in it, but following error: "Data error: Maybe data got lost" When I set debug to 2, I'm getting following debug message: Notice (8): Undefined property: ExcelWriter::$filename in [APP/views/helpers/excel.php, line 216] and following error message: Warning (2): file_get_contents(): Filename cannot be empty in [APP/views/helpers/excel.php, line 216] The problem seems to have something to do with the temp file, in the original ExcelWriter class saves the filename, but the ExcelHelper (which extends the ExcelWriter) seems to miss that (if I understodd it right): [code lang=PHP]function ExcelWriter($filename = '') { $this->_filename = $filename; $this->ExcelWorkbook($filename); }[/code] and ExcelHelper extends ExcelWriter [code lang=PHP]function ExcelHelper($filename = 'data.xls') { $this->workbook =& new ExcelWriter(); $this->workbook->setTempDir(TMP."cache"); $this->workbook->setVersion(8); // Set workbook to Excel 97 (for UTF-8 support) }[/code] Any ideas how that should be solved or what's wrong? thx Gaius Martin Westin wrote: > > I zipped my files and put them up on my dev-server. > http://dev.eimermusic.com/cake_excel_writer/ > They are all for 1.2 and work on my setup. Can't remember if I tweaked > the helper or not... > > They will stay there for a while but not forever. > > /Martin > > > > On Sep 18, 3:57 pm, mario <marioqta...@gmail.com> wrote: >> Hello everyone, >> >> I wanted to generate an excel report from my database query >> and I've come acroos this tutorial in the bakery. >> >> http://bakery.cakephp.org/articles/view/generate-excel-spreadsheets-f... >> >> However, it seems like the download links are already broken. >> >> http://webdesign.janenanneriet.nl/excel_writer.ziphttp://webdesign.janenanneriet.nl/ole.zip >> >> Does anyone of you have these files? (would be better if working in >> cakephp 1.2) >> >> Please share it. I really need them in my project. >> >> Thanks, >> >> Mario > > > > -- View this message in context: http://n2.nabble.com/from-database-to-excel-%28Missing-files-in-the-bakery%29-tp1098216p3306796.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---