xlsx_writer

Crates.ioxlsx_writer
lib.rsxlsx_writer
version0.1.5
sourcesrc
created_at2023-01-25 02:47:54.215111
updated_at2023-01-25 08:37:32.820523
descriptionwrite to xlsx in windows
homepage
repositoryhttps://github.com/8bitTD/xlsx_writer
max_upload_size
id767089
size26,444
8bit (8bitTD)

documentation

README

xlsx_writer

use xlsx_writer::*;
fn main(){
    let xlsx_path = format!("{}{}{}",std::env::current_dir().unwrap().display().to_string(),"/","test.xlsx").replace("\\","/");
    let mut cells = Vec::new();
    let c = Cell::default().set_pos(1,1).set_content("_test");
    cells.push(c);
    let sheet1 =Sheet::default()
        .set_name("test_sheet")
        .set_cells(cells);
    let mut xlsx = Xlsx::default().add_sheet(sheet1).set_path(xlsx_path);
    xlsx.write_xlsx();
    while xlsx.is_write(){
        xlsx.update();
    }
    xlsx.open_xlsx();
}
Commit count: 14

cargo fmt