Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there any good extension (module) for Kohana 3.2.2 framework, that working with Excel files?
    primarykey
    data
    text
    <p>I need to compose some xls(x) files, but don't know a good extension (module) for Kohana 3.2.2 framework, I know about PHPExcel ( a lot of links and repos I found ), but the most of them based on a PEAR library, that I'm not supporting in my project, maybe someone knows a good solution for that?</p> <p>So I need a link with good documentation and module for that. Thanks.</p> <p><strong>UPD</strong>.</p> <p>I made a first test for PHPExcel Library through this code:</p> <pre><code>$objPHPExcel = new PHPExcel(); $objPHPExcel-&gt;setActiveSheetIndex(0) -&gt;setCellValue('A1', 'Hello') -&gt;setCellValue('B1', 'world!'); // header("Content-Type:application/vnd.ms-excel"); // header("Content-Disposition:attachment;filename='simple.xls'"); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel,'Excel2007'); $name = $objWriter-&gt;save('docs/MyExcel12.xlsx'); $file = $_SERVER['DOCUMENT_ROOT']."/docs/MyExcel12.xlsx"; /* if (file_exists($file)) { header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Length: '.filesize($file)); readfile($file); }*/ if (file_exists($file)) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Length: '.filesize($file)); readfile($file); } </code></pre> <p>I see a file that was created after this code apply, but browser not forcing download it, as u can see I've used different headers, but do not have my file out. Help!?</p> <p><strong>UPD</strong> Also I have used:</p> <pre><code> header("Content-Type:application/vnd.ms-excel"); header("Content-Disposition:attachment;filename='simple.xls'"); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel,'Excel5'); $objWriter-&gt;save('php://output'); </code></pre> <p>But have error (instead of file):</p> <pre><code>net::ERR_FILE_NOT_FOUND </code></pre> <p>I made a redirect, but as I think it is not a solution anyway:</p> <pre><code> $this-&gt;request-&gt;redirect('docs/new.xlsx'); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload