![]() ![]() $workbook->easy_getError() įor methods with same name but different parameters, only the first method overload retains the original name. Confirm export of Excel file if ($workbook->easy_getError() = "")Įlse echo "Error encountered: ". $workbook->easy_WriteXLSXFile( "C:\Samples\Tutorial04 - export data to Excel.xlsx") Export the XLSX file echo "Writing file: C:\Samples\Tutorial04 - export data to Excel.xlsx" $xlsFirstTable->easy_getColumnAt(3)->setWidth(100) $xlsFirstTable->easy_getColumnAt(2)->setWidth(100) $xlsFirstTable->easy_getColumnAt(1)->setWidth(100) ![]() $xlsFirstTable->easy_getColumnAt(0)->setWidth(100) ![]() Add data in cells for report values for ($row=0 $roweasy_getCell($row 1,$column)->setValue( "Data ".($row 1). $xlsFirstTable->easy_getCell(0,$column)->setDataType($DATATYPE_STRING) Add data in cells for report header for ($column=0 $columneasy_getCell(0,$column)->setValue( "Column ". $xlsFirstTable = $workbook->easy_getSheetAt(0)->easy_getExcelTable() Get the table of data for the first worksheet $workbook->easy_addWorksheet_2( "Second tab") ![]() $workbook = new COM( "EasyXLS.ExcelDocument") Create an instance of the class that exports Excel files ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |