mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
commit
294fc8f3b7
16
README.md
16
README.md
|
@ -19,14 +19,14 @@ Including xlnt in your project
|
||||||
|
|
||||||
Creating a new spreadsheet and saving it as "example.xlsx"
|
Creating a new spreadsheet and saving it as "example.xlsx"
|
||||||
```c++
|
```c++
|
||||||
xlnt::workbook wb;
|
xlnt::workbook wb;
|
||||||
xlnt::worksheet ws = wb.get_active_sheet();
|
xlnt::worksheet ws = wb.active_sheet();
|
||||||
ws.get_cell("A1").set_value(5);
|
ws.cell("A1").value(5);
|
||||||
ws.get_cell("B2").set_value("string data");
|
ws.cell("B2").value("string data");
|
||||||
ws.get_cell("C3").set_formula("=RAND()");
|
ws.cell("C3").formula("=RAND()");
|
||||||
ws.merge_cells("C3:C4");
|
ws.merge_cells("C3:C4");
|
||||||
ws.freeze_panes("B2");
|
ws.freeze_panes("B2");
|
||||||
wb.save("example.xlsx");
|
wb.save("example.xlsx");
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
Loading…
Reference in New Issue
Block a user