Update README.md (#256)

This commit is contained in:
Adrien Loison 2016-06-19 20:20:49 -07:00 committed by GitHub
parent e30bc37448
commit 192659cb24

View File

@ -168,13 +168,12 @@ $style = (new StyleBuilder())
->setBorder($border) ->setBorder($border)
->build(); ->build();
$writer = WriterFactory::create(Type::ODS); $writer = WriterFactory::create(Type::XLSX);
$writer->openToFile(__DIR__ . '/borders.xlsx'); $writer->openToFile($filePath);
$writer->addRowWithStyle(['Border Bottom Green Thin Dashed'], $style) $writer->addRowWithStyle(['Border Bottom Green Thin Dashed'], $style)
$writer->close(); $writer->close();
``` ```
Unfortunately, Spout does not support all the possible formatting options yet. But you can find the most important ones: Unfortunately, Spout does not support all the possible formatting options yet. But you can find the most important ones: