From b4a6175dad9280e455674bd1296669da9fefeb7e Mon Sep 17 00:00:00 2001 From: topillar Date: Sun, 25 Dec 2016 00:06:56 +0800 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4d84388d..29d5c911 100644 --- a/README.md +++ b/README.md @@ -19,14 +19,14 @@ 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()"); -ws.merge_cells("C3:C4"); -ws.freeze_panes("B2"); -wb.save("example.xlsx"); + xlnt::workbook wb; + 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"); ``` ## Building