rust_xlsxwriter 0.99.1

A Rust library for writing Excel 2007 xlsx files
Documentation
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright 2022-2026, John McNamara, jmcnamara@cpan.org

//! An example of setting custom/user defined workbook document properties.

use rust_xlsxwriter::{DocProperties, Workbook, XlsxError};

fn main() -> Result<(), XlsxError> {
    let mut workbook = Workbook::new();

    let properties = DocProperties::new()
        .set_custom_property("Checked by", "Admin")
        .set_custom_property("Cross check", true)
        .set_custom_property("Department", "Finance")
        .set_custom_property("Document number", 55301);

    workbook.set_properties(&properties);

    workbook.save("properties.xlsx")?;

    Ok(())
}