MathNya / umya-spreadsheet

A pure rust library for reading and writing spreadsheet files
MIT License
276 stars 44 forks source link

The set_number_format function is not reflected in the xlsx file. #87

Closed obliqua closed 1 year ago

obliqua commented 1 year ago

The set_number_format function is not reflected in the xlsx file.

    let mut book = umya_spreadsheet::new_file();
    let mut style = book.get_sheet_by_name_mut("Sheet1").unwrap().get_style_mut("A1");

    style.get_number_format_mut().set_format_code(umya_spreadsheet::NumberingFormat::FORMAT_TEXT);

    let path = std::path::Path::new("./test.xlsx");
    let _ = umya_spreadsheet::writer::xlsx::write(&book, path);
MathNya commented 1 year ago

Thank you for your report. We will check and correct the issue as soon as possible. We will contact you again when we have completed our response.

MathNya commented 1 year ago

The latest version has been released. Please check after obtaining the latest version.

obliqua commented 1 year ago

Thanks.