4 include_once
"./Services/Excel/classes/class.ilExcelAdapter.php";
28 $worksheets = array();
31 include_once
"./Services/Excel/classes/class.ilExcelWriterAdapter.php";
33 $this->workbook = $this->adapter->getWorkbook();
34 $this->workbook->setVersion(8);
36 $this->format_bold =& $this->workbook->addFormat();
37 $this->format_bold->setBold();
38 $this->format_center =& $this->workbook->addFormat();
39 $this->format_center->setColor(
'black');
40 $this->format_center->setAlign(
'center');
41 $this->format_percent =& $this->workbook->addFormat();
42 $this->format_percent->setNumFormat(
"0.00%");
43 $this->format_datetime =& $this->workbook->addFormat();
44 $this->format_datetime->setNumFormat(
"DD/MM/YYYY hh:mm:ss");
45 $this->format_minutes =& $this->workbook->addFormat();
46 $this->format_minutes->setNumFormat(
"mm:ss");
47 $this->format_title =& $this->workbook->addFormat();
48 $this->format_title->setBold();
49 $this->format_title->setColor(
'black');
50 $this->format_title->setPattern(1);
51 $this->format_title->setFgColor(
'silver');
58 $this->workbook->close();
64 $this->workbook->close();
65 ilUtil::deliverFile($this->excelfile, $outputfilename,
"application/vnd.ms-excel",
false,
true);
71 return count($this->workbook->worksheets());
76 $this->activesheet = $index;
81 $sheets = $this->workbook->worksheets();
87 include_once
"./Services/Excel/classes/class.ilExcelUtils.php";
93 include_once
"./Services/Excel/classes/class.ilExcelUtils.php";
100 $objWorksheet = $this->workbook->addWorksheet();
103 return $objWorksheet;
112 include_once
"./Services/Excel/classes/class.ilExcelUtils.php";
150 $charset = mb_detect_encoding(
152 "UTF-8, ISO-8859-1, ISO-8859-15",
156 $string = mb_convert_encoding($string,
"Windows-1252", $charset);