excelize 0.0.1

Rust language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
Documentation
  • Coverage
  • 16.36%
    45 out of 275 items documented1 out of 63 items with examples
  • Size
  • Source code size: 116.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.24 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 25s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • xuri

excelize

Introduction

Excelize is a pure Rust port of Go Excelize library that allow you to write to and read from XLAM / XLSM / XLSX / XLTM / XLTX files. Supports reading and writing spreadsheet documents generated by Microsoft Excel™ 2007 and later. Supports complex components by high compatibility. The full API docs can be found at docs reference.

Reading spreadsheet

The following constitutes the bare to read a spreadsheet document.

extern crate excelize;

use excelize::*;

fn main() {
    let path = String::from("Book1.xlsx");
    let wb = Spreadsheet::open_file(path);
    match wb {
        Ok(ws) => match ws.get_cell_value("Sheet1", 1, 1) {
            Ok(c) => {
                let cell = String::from(c);
                println!("the value of cell A1 is: {}", cell)
            }
            Err(e) => println!("{:?}", e),
        },
        Err(e) => print!("{:?}", e),
    }
}

Contributing

Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change. XML is compliant with part 1 of the 5th edition of the ECMA-376 Standard for Office Open XML.

Licenses

This program is under the terms of the BSD 3-Clause License. See https://opensource.org/licenses/BSD-3-Clause.