#excel #writer #cell #sheet #row #merge #file

bin+lib excel_writer

Wild Excel Writer

4 releases

0.2.2 Apr 10, 2020
0.2.1 Apr 9, 2020
0.2.0 Aug 20, 2019
0.1.0 Aug 20, 2019

#16 in #sheet

MIT license

22KB
596 lines

Excel Writer

Write to a std::io::Write or std::fs::File as .xlsx File

Usage

To use excel_writer, first add this to your Cargo.toml:

[dependencies]
excel_writer = "0.1"

Next, add this to your crate:

use excel_writer::{Context, Excel};

let mut excel = Excel::default();
let mut context = Context::default();

let sheet = excel.workbook().add_sheet(Some("first sheet"));

let row = sheet.add_row();

row.add_str_cell(&mut context, "cell1");
row.add_str_cell(&mut context, "cell2");

excel.write_to_file(&context, "demo.xlsx")?;

Features

  • Add Sheet
  • Add Row
  • Set Cell
    • String Cell
    • Number Cell
  • Merge cells

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in bytes by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~8–17MB
~226K SLoC