Re: Structures_DataGrid_Renderer_XLS: I just get empty files

From: Date: Wed, 28 Feb 2007 00:42:06 +0000
Subject: Re: Structures_DataGrid_Renderer_XLS: I just get empty files
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26686@lists.php.net to get a copy of this message
Markus Ernst wrote: > Now with my real world data I still have the *** ERROR IN SST *** > problem that is already described in a bug for Spreadsheet_Excel_Writer, > but that should (according to a comment in the bug report) be solved in > the actual version when setting setVersion(8). Anyway the problem seems > to persist. Do you have an URL for that bug? > Is there a known solution to this now? Or do I just forget something? > Here's the code, that works for small data, but breaks with bigger > amounts (5-column person list, breaks from line 89): > > <?php > $options = array('encoding' => 'utf-8', 'filename' => > 'test.xls'); > $renderer =& $datagrid->setRenderer(DATAGRID_RENDER_XLS, $options); > $workbook =& $renderer->getContainer(); > $workbook->setTempDir('path/to/dir/'); > $workbook->setVersion(8); > $datagrid->render($renderer); > ?> Could you write a complete example so we can try it? 5 columns and 89 lines seems to be still tiny. Regards... Michael

« previous php.pear.general (#26686) next »