pub fn write_with_password<P: AsRef<Path>>(
spreadsheet: &Spreadsheet,
path: P,
password: &str,
) -> Result<(), XlsxError>
Expand description
write spreadsheet file with password.
§Arguments
spreadsheet
- Spreadsheet structs object.path
- file path to save.password
- password.
§Return value
Result
- OK is void. Err is error message.
§Examples
let mut book = umya_spreadsheet::new_file();
let path = std::path::Path::new("./tests/result_files/zzz_password.xlsx");
let _ = umya_spreadsheet::writer::xlsx::write_with_password(&book, path, "password");