Creating excel sheets through php with an image
2005-06-14 16:12
507 查看
The head like this:
header("Content-Type: application/vnd.ms-excel");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=monthly_report.xls");
The Content:
$sheet->mergeCells(0,0,2,14);
$titleFormat =& $xls->addFormat();
$titleFormat->setSize('20');
$titleFormat->setColor('navy');
$titleFormat->setBottom(2);
$titleFormat->setBottomColor('navy');
$titleFormat->setAlign('merge');
$sheet->write(0,0,"Monthly Report",$titleFormat);
But,I used pear display excel data.
header("Content-Type: application/vnd.ms-excel");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=monthly_report.xls");
The Content:
$sheet->mergeCells(0,0,2,14);
$titleFormat =& $xls->addFormat();
$titleFormat->setSize('20');
$titleFormat->setColor('navy');
$titleFormat->setBottom(2);
$titleFormat->setBottomColor('navy');
$titleFormat->setAlign('merge');
$sheet->write(0,0,"Monthly Report",$titleFormat);
But,I used pear display excel data.
相关文章推荐
- Creating Excel Spreadsheets with Office Web Components (OWC) By Scott Mitchell
- [Creating an image format with an unknown type is an error] on cordova, ios 10
- Creating Excel Spreadsheets with Office Web Components
- PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file问题解决
- 使用UIImagePickerController导致[Generic] Creating an image format with an unknown type is an error
- [Generic] Creating an image format with an unknown type is an error
- Creating an Extensible User Interface with .NET
- Lab 1: Creating an Initial Web Client Solution with Business Modules
- Joining an array of keys to a hash with key value pairs like excel vlookup
- Read the sheets in the Excel with QT
- Deal with an annoying Message in Excel
- Save an userform as an image in EXCEL
- Creating An Instance Of The Com Component With Clsid {b9425246-4131-11d2-be48-004005a04edf} From The Iclassfactory Failed Due To The Following Error
- PHPExcel_Reader_Exception: is not recognised as an OLE file in Classes
- [转载]Flip an image in UIImageView using UIView transitionWithView
- Error creating bean with name 'problemServiceImpl': Unsatisfied dependency expressed through field '
- [Tizen]Creating a Tizen Platform Image from Scratch through Local Build
- AGG第四十二课 Blitting an image over another with transparency
- 《Zoom An Image With Different Interpolation Types》
- Installing ImageMagick on Windows and Using with PHP