Merge pull request #102 from topillar/patch-1

Update README.md
This commit is contained in:
Thomas Fussell 2016-12-29 18:37:42 -05:00 committed by GitHub
commit 294fc8f3b7

View File

@ -20,10 +20,10 @@ Including xlnt in your project
Creating a new spreadsheet and saving it as "example.xlsx"
```c++
xlnt::workbook wb;
xlnt::worksheet ws = wb.get_active_sheet();
ws.get_cell("A1").set_value(5);
ws.get_cell("B2").set_value("string data");
ws.get_cell("C3").set_formula("=RAND()");
xlnt::worksheet ws = wb.active_sheet();
ws.cell("A1").value(5);
ws.cell("B2").value("string data");
ws.cell("C3").formula("=RAND()");
ws.merge_cells("C3:C4");
ws.freeze_panes("B2");
wb.save("example.xlsx");