Crates.io | xlsx_writer |
lib.rs | xlsx_writer |
version | 0.1.5 |
source | src |
created_at | 2023-01-25 02:47:54.215111 |
updated_at | 2023-01-25 08:37:32.820523 |
description | write to xlsx in windows |
homepage | |
repository | https://github.com/8bitTD/xlsx_writer |
max_upload_size | |
id | 767089 |
size | 26,444 |
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();
}