mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-25 14:56:04 +03:00
Minor bugfixes and documentation changes
This commit is contained in:
parent
f29b05b473
commit
6ae1056fb2
@ -15,3 +15,6 @@ pChart
|
|||||||
|
|
||||||
TeeChart
|
TeeChart
|
||||||
http://www.steema.com/products/teechart/overview.html
|
http://www.steema.com/products/teechart/overview.html
|
||||||
|
|
||||||
|
PHPGraphLib
|
||||||
|
http://www.ebrueggeman.com/phpgraphlib
|
@ -5465,7 +5465,7 @@ class PHPExcel_Reader_Excel5 extends PHPExcel_Reader_Abstract implements PHPExce
|
|||||||
unset($space2, $space3, $space4, $space5);
|
unset($space2, $space3, $space4, $space5);
|
||||||
break;
|
break;
|
||||||
case 'tArray': // array constant
|
case 'tArray': // array constant
|
||||||
$constantArray = self::_readBIFF8ConstantArray($additionalData);
|
$constantArray = self::readBIFF8ConstantArray($additionalData);
|
||||||
$formulaStrings[] = $space1 . $space0 . $constantArray['value'];
|
$formulaStrings[] = $space1 . $space0 . $constantArray['value'];
|
||||||
$additionalData = substr($additionalData, $constantArray['size']); // bite of chunk of additional data
|
$additionalData = substr($additionalData, $constantArray['size']); // bite of chunk of additional data
|
||||||
unset($space0, $space1);
|
unset($space0, $space1);
|
||||||
@ -7217,7 +7217,7 @@ class PHPExcel_Reader_Excel5 extends PHPExcel_Reader_Abstract implements PHPExce
|
|||||||
for ($r = 1; $r <= $nr + 1; ++$r) {
|
for ($r = 1; $r <= $nr + 1; ++$r) {
|
||||||
$items = array();
|
$items = array();
|
||||||
for ($c = 1; $c <= $nc + 1; ++$c) {
|
for ($c = 1; $c <= $nc + 1; ++$c) {
|
||||||
$constant = self::_readBIFF8Constant($arrayData);
|
$constant = self::readBIFF8Constant($arrayData);
|
||||||
$items[] = $constant['value'];
|
$items[] = $constant['value'];
|
||||||
$arrayData = substr($arrayData, $constant['size']);
|
$arrayData = substr($arrayData, $constant['size']);
|
||||||
$size += $constant['size'];
|
$size += $constant['size'];
|
||||||
|
@ -494,7 +494,7 @@ class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_
|
|||||||
// Reload the HTML file into the DOM object
|
// Reload the HTML file into the DOM object
|
||||||
$loaded = $dom->loadHTML(mb_convert_encoding($this->securityScanFile($pFilename), 'HTML-ENTITIES', 'UTF-8'));
|
$loaded = $dom->loadHTML(mb_convert_encoding($this->securityScanFile($pFilename), 'HTML-ENTITIES', 'UTF-8'));
|
||||||
if ($loaded === false) {
|
if ($loaded === false) {
|
||||||
throw new PHPExcel_Reader_Exception('Failed to load ', $pFilename, ' as a DOM Document');
|
throw new PHPExcel_Reader_Exception('Failed to load ' . $pFilename . ' as a DOM Document');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Discard white space
|
// Discard white space
|
||||||
|
Binary file not shown.
@ -103,13 +103,13 @@ This is regardless of which language version of Microsoft Office Excel may have
|
|||||||
|
|
||||||
When the final workbook is opened by the user, Microsoft Office Excel will take care of displaying the formula according the applications language. Translation is taken care of by the application!
|
When the final workbook is opened by the user, Microsoft Office Excel will take care of displaying the formula according the applications language. Translation is taken care of by the application!
|
||||||
|
|
||||||
The following line of code writes the formula '=IF(C4>500,"profit","loss")'<EFBFBD> into the cell B8. Note that the formula must start with "=" to make PHPExcel recognise this as a formula.
|
The following line of code writes the formula '=IF(C4>500,"profit","loss")' into the cell B8. Note that the formula must start with "=" to make PHPExcel recognise this as a formula.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$objPHPExcel->getActiveSheet()->setCellValue('B8','=IF(C4>500,"profit","loss")');
|
$objPHPExcel->getActiveSheet()->setCellValue('B8','=IF(C4>500,"profit","loss")');
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to write a string beginning with an "="<EFBFBD> character to a cell, then you should use the setCellValueExplicit() method.
|
If you want to write a string beginning with an "=" character to a cell, then you should use the setCellValueExplicit() method.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$objPHPExcel->getActiveSheet()
|
$objPHPExcel->getActiveSheet()
|
||||||
@ -167,22 +167,22 @@ At present, the following locale settings are supported:
|
|||||||
|
|
||||||
Language | | Locale Code
|
Language | | Locale Code
|
||||||
---------------------|----------------------|-------------
|
---------------------|----------------------|-------------
|
||||||
Czech | Ceština | cs
|
Czech | Ceština | cs
|
||||||
Danish | Dansk | da
|
Danish | Dansk | da
|
||||||
German | Deutsch | de
|
German | Deutsch | de
|
||||||
Spanish | Español | es
|
Spanish | Español | es
|
||||||
Finnish | Suomi | fi
|
Finnish | Suomi | fi
|
||||||
French | Français | fr
|
French | Français | fr
|
||||||
Hungarian | Magyar | hu
|
Hungarian | Magyar | hu
|
||||||
Italian | Italiano | it
|
Italian | Italiano | it
|
||||||
Dutch | Nederlands | nl
|
Dutch | Nederlands | nl
|
||||||
Norwegian | Norsk | no
|
Norwegian | Norsk | no
|
||||||
Polish | Jezyk polski | pl
|
Polish | Jezyk polski | pl
|
||||||
Portuguese | Português | pt
|
Portuguese | Português | pt
|
||||||
Brazilian Portuguese | Português Brasileiro | pt_br
|
Brazilian Portuguese | Português Brasileiro | pt_br
|
||||||
Russian | ??????? ???? | ru
|
Russian | ??????? ???? | ru
|
||||||
Swedish | Svenska | sv
|
Swedish | Svenska | sv
|
||||||
Turkish | Türkçe | tr
|
Turkish | Türkçe | tr
|
||||||
|
|
||||||
### Write a newline character "\n" in a cell (ALT+"Enter")
|
### Write a newline character "\n" in a cell (ALT+"Enter")
|
||||||
|
|
||||||
@ -843,7 +843,7 @@ You can instruct PHPExcel to add a summary to the right (default), or to the lef
|
|||||||
$objPHPExcel->getActiveSheet()->setShowSummaryRight(false);
|
$objPHPExcel->getActiveSheet()->setShowSummaryRight(false);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setting a row''s height
|
### Setting a row's height
|
||||||
|
|
||||||
A row's height can be set using the following code:
|
A row's height can be set using the following code:
|
||||||
|
|
||||||
@ -851,6 +851,8 @@ A row's height can be set using the following code:
|
|||||||
$objPHPExcel->getActiveSheet()->getRowDimension('10')->setRowHeight(100);
|
$objPHPExcel->getActiveSheet()->getRowDimension('10')->setRowHeight(100);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Excel measures row height in points, where 1 pt is 1/72 of an inch (or about 0.35mm). The default value is 12.75 pts; and the permitted range of values is between 0 and 409 pts, where 0 pts is a hidden row.
|
||||||
|
|
||||||
### Show/hide a row
|
### Show/hide a row
|
||||||
|
|
||||||
To set a worksheet''s row visibility, you can use the following code. The following example hides row number 10.
|
To set a worksheet''s row visibility, you can use the following code. The following example hides row number 10.
|
||||||
@ -1059,7 +1061,7 @@ Sometimes, one really wants to output a file to a client''s browser, especially
|
|||||||
2. Output HTTP headers for the type of document you wish to output
|
2. Output HTTP headers for the type of document you wish to output
|
||||||
3. Use the PHPExcel_Writer_* of your choice, and save to "php://output"
|
3. Use the PHPExcel_Writer_* of your choice, and save to "php://output"
|
||||||
|
|
||||||
<EFBFBD>PHPExcel_Writer_Excel2007 uses temporary storage when writing to php://output. By default, temporary files are stored in the script's working directory. When there is no access, it falls back to the operating system's temporary files location.
|
PHPExcel_Writer_Excel2007 uses temporary storage when writing to php://output. By default, temporary files are stored in the script's working directory. When there is no access, it falls back to the operating system's temporary files location.
|
||||||
|
|
||||||
__This may not be safe for unauthorized viewing!__
|
__This may not be safe for unauthorized viewing!__
|
||||||
Depending on the configuration of your operating system, temporary storage can be read by anyone using the same temporary storage folder. When confidentiality of your document is needed, it is recommended not to use php://output.
|
Depending on the configuration of your operating system, temporary storage can be read by anyone using the same temporary storage folder. When confidentiality of your document is needed, it is recommended not to use php://output.
|
||||||
@ -1146,7 +1148,7 @@ To set a worksheet's zoom level, the following code can be used:
|
|||||||
$objPHPExcel->getActiveSheet()->getSheetView()->setZoomScale(75);
|
$objPHPExcel->getActiveSheet()->getSheetView()->setZoomScale(75);
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that zoom level should be in range 10 – 400.
|
Note that zoom level should be in range 10 – 400.
|
||||||
|
|
||||||
### Sheet tab color
|
### Sheet tab color
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user