download example-bigfile.php
Language: PHP
LOC: 20
Project Info
Dolibarr
Server: Savannah NonGNU
Type: cvs
...cs\includes\php_writeexcel\
   class.excel.php
   class.ole.php
   class.ole_pps.php
   class.ole_pps_dir.php
   class.ole_pps_file.php
   class.ole_pps_root.php
   ...xcel_biffwriter.inc.php
   ...iteexcel_format.inc.php
   ...teexcel_formula.inc.php
   ...excel_olewriter.inc.php
   ...eexcel_workbook.inc.php
   ...cel_workbookbig.inc.php
   ...excel_worksheet.inc.php
   example-bigfile.php
   example-colors.php
   example-demo.php
   example-merge2.php
   example-panes.php
   example-repeat.php
   example-simple.php
   example-stocks.php
   example-textwrap.php
   functions.ole.php
   ...teexcel_utility.inc.php

<?php

set_time_limit(300);

require_once "class.writeexcel_workbookbig.inc.php";
require_once "class.writeexcel_worksheet.inc.php";

$fname = tempnam("/tmp", "bigfile.xls");
$workbook = &new writeexcel_workbookbig($fname);
$worksheet = &$workbook->addworksheet();

$worksheet->set_column(0, 50, 18);

for ($col=0;$col<50;$col++) {
    for ($row=0;$row<6000;$row++) {
        $worksheet->write($row, $col, "ROW:$row COL:$col");
    }
}

$workbook->close();

header("Content-Type: application/x-msexcel; name=\"example-bigfile.xls\"");
header("Content-Disposition: inline; filename=\"example-bigfile.xls\"");
$fh=fopen($fname, "rb");
fpassthru($fh);
unlink($fname);

?>

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us