Skip to content

nottxy/excel_writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages