Skip to content

Commit 098a0c6

Browse files
committed
Issue #28 Fix getSheet() example in README
1 parent 872ef4a commit 098a0c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,16 @@ As you have access to the `PHPExcel` object you can also "manually" modify the e
248248

249249
```php
250250
<?php
251+
// Create the actual workbook and sheets
252+
$file->createSheets();
251253
$file
252254
->getWorkbook();
253255
->getSheet(1)
254256
->getStyle('B1')
255257
->getFont()
256258
->getColor()
257259
->setARGB(\PHPExcel_Style_Color::COLOR_RED);
260+
$file->send();
258261
```
259262

260263
Alternatively you can also use the callback feature from our `ExcelSheet`:

0 commit comments

Comments
 (0)