1. 寫在前面的話
首先,第一次翻譯該文檔,漏洞百出,希望大家給點意見和指導。
phpExcel官網指出:PHPExcel是基於OPENXML標準,使用PHP讀寫並建立Excel檔案試算表的引擎。
該項目為php程式設計語言提供了一系列允許你讀寫不同檔案格式的試算表的類,像Excel(BIFF).xls、Excel 2007 (Office OpenXML).xlsx、CSV、Libre/OpenOffice Cacl .ods、Gnumeric、PDF、HTML等等。該項目圍繞微軟的OpenXML標準和PHP建立。
該項目提供一系列新特性,如設定試算表中繼資料(作者,標題,描述,……)、多個工作表、不同的字型及字型樣式、單元邊框、填充、漸層、添加圖片到試算表、計算公式、轉換成多種檔案類型!
2. 前提條件
2.1. 軟體需求
2.2. 安裝說明
2.3. 開始
2.4. 有用的連結和工具
2.4.1. OpenXML / SpreadsheetM
2.4.2. 常見問題
2.4.3. 教程
3. 結構
3.1. 原理
3.2. 惰性載入
3.3. 試算表載入記憶體
3.4. 讀寫控制代碼
3.5. 平滑介面
4. 建立試算表
4.1. PHPExcel類
4.1.1. 從檔案中載入活頁簿
4.1.2. 建立新的活頁簿
4.2. 配置設定
4.2.1. 單元緩衝
4.2.2. 語言/本地化
4.3. 從記憶體中清除活頁簿
4.4. 工作表
4.4.1. 添加工作表
4.4.2. 複製工作表
4.4.3. 刪除工作表
4.5. 存取(訪問)單元
4.5.1. 通過座標設定儲存格的值
4.5.2. 通過座標檢索儲存格
4.5.3. 通過列和行設定儲存格的值
4.5.4. 通過列和行檢索儲存格的值
4.5.5. 迴圈儲存格
4.5.6. Using value binders to facilitate data entry
4.6. PHPExcel recipes
4.6.1. Setting a spreadsheet’s metadata
4.6.2. Setting a spreadsheet’s active sheet
4.6.3. Write a date or time into a cell
4.6.4. Write a formula into a cell
4.6.5. Locale Settings for Formulae
4.6.6. Write a newline character “\n” in a cell (ALT+”Enter”)
4.6.7. Explicitly set a cell’s datatype
4.6.8. Change a cell into a clickable URL
4.6.9. Setting a worksheet’s page orientation and size
4.6.10. Page Setup: Scaling options
4.6.11. Page margins
4.6.12. Center a page horizontally/vertically
4.6.13. Setting the print header and footer of a worksheet
4.6.14. Setting printing breaks on a row or column
4.6.15. Show/hide gridlines when printing
4.6.16. Setting rows/columns to repeat at top/left
4.6.17. Specify printing area
4.6.18. Formatting cells
4.6.19. Number formats
4.6.20. Alignment and wrap text
4.6.21. Setting the default style of a workbook
4.6.22. Styling cell borders
4.6.23. Conditional formatting a cell
4.6.24. Add a comment to a cell
4.6.25. Apply autofilter to a range of cells
4.6.26. Setting security on a spreadsheet
4.6.27. Setting data validation on a cell
4.6.28. Setting a column’s width
4.6.29. Show/hide a column
4.6.30. Group/outline a column
4.6.31. Setting a row’s height
4.6.32. Show/hide a row
4.6.33. Group/outline a row
4.6.34. Merge/unmerge cells
4.6.35. Inserting rows/columns
4.6.36. Add a drawing to a worksheet
4.6.37. Reading Images from a worksheet
4.6.38. Add rich text to a cell
4.6.39. Define a named range
4.6.40. Redirect output to a client’s web browser
4.6.41. Setting the default column width
4.6.42. Setting the default row height
4.6.43. Add a GD drawing to a worksheet
4.6.44. Setting worksheet zoom level
4.6.45. Sheet tab color
4.6.46. Creating worksheets in a workbook
4.6.47. Hidden worksheets (Sheet states)
4.6.48. Right-to-left worksheet
5. Performing formula calculations
5.1. Using the PHPExcel calculation engine
5.2. Known limitations
5.2.1. Operator precedence
5.2.2. Formulas involving numbers and text
6. Reading and writing to file
6.1. PHPExcel_IOFactory
6.1.1. Creating PHPExcel_Reader_IReader using PHPExcel_IOFactory
6.1.2. Creating PHPExcel_Writer_IWriter using PHPExcel_IOFactory
6.2. Excel 2007 (SpreadsheetML) file format
6.2.1. PHPExcel_Reader_Excel2007
6.2.2. PHPExcel_Writer_Excel2007
6.3. Excel 5 (BIFF) file format
6.3.1. PHPExcel_Reader_Excel5
6.3.2. PHPExcel_Writer_Excel5
6.4. Excel 2003 XML file format
6.4.1. PHPExcel_Reader_Excel2003XML
6.5. Symbolic LinK (SYLK)
6.5.1. PHPExcel_Reader_SYLK
6.6. Open/Libre Office (.ods)
6.6.1. PHPExcel_Reader_OOCalc
6.7. CSV (Comma Separated Values)
6.7.1. PHPExcel_Reader_CSV
6.7.2. PHPExcel_Writer_CSV
6.8. HTML
6.8.1. PHPExcel_Reader_HTML
6.8.2. PHPExcel_Writer_HTML
6.9. PDF
6.9.1. PHPExcel_Writer_PDF
6.10. Generating Excel files from templates (read, modify, write)
7. Credits 50
Appendix A: Valid array keys for style applyFromArray()
著作權聲明:本文為博主原創文章,未經博主允許不得轉載。
以上就介紹了PHPExcel開發人員文檔[中文版],包括了方面的內容,希望對PHP教程有興趣的朋友有所協助。