Multiple Worksheets, Borders, and Images
Few months back I was searching for the php code that creates excel file, which has got the content in multiple worksheet. I couldn't get any help from the net. Today just going through the PEAR Modules, I came across this script. This script generates excel file with multiple worksheets. <?php require_once 'Spreadsheet/Excel/Writer.php'; $workbook = new Spreadsheet_Excel_Writer(\"example4.xls\"); $worksheet =& $workbook->addWorksheet();\n $worksheet->writeNote(1, 0, \"Invoice For New Customer 1\"); $worksheet->setRow(0, 50); //$worksheet->insertBitmap(0, 0, \"logo.bmp\", 0, 0); $left =& $workbook->addFormat(array(\"Left\" => 2)); $right =& $workbook->addFormat(array(\"Right\" => 2)); $number =& $workbook->addFormat(array(\"NumFormat\" =>'$####.00')); $worksheet->write(1, 1, \"Client Name:Shakeel Shrestha\"); $worksheet->write(2,