From 7cd752613ae1de2e03d33c0aa4f52c176b9f43d4 Mon Sep 17 00:00:00 2001 From: tfussell Date: Mon, 19 May 2014 17:35:24 -0400 Subject: [PATCH] Add a description to examples --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2bf5d98c..67a7470b 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ xlnt is a c++ library that reads and write XLSX files. The API is roughly based Usage ---- +Create a new spreadsheet ```c++ xlnt::workbook wb; xlnt::worksheet ws = wb.get_active_sheet(); @@ -16,7 +17,10 @@ ws.cell("C3") = "=RAND()"; ws.merge_cells("C3:C4"); ws.freeze_panes("B2"); wb.save("book1.xlsx"); +``` +Open an existing spreadsheet +```c++ xlnt::workbook wb2; wb2.load("book2.xlsx"); wb2["sheet1"].get_dimensions();