All Projects → xuri → excelize-rs

xuri / excelize-rs

Licence: BSD-3-Clause license
Rust library for reading spreadsheet files.

Programming Languages

rust
11053 projects

excelize-rs logo

Build Status Licenses Donate

excelize-rs

Introduction

excelize-rs is a library written in pure Rust providing a set of functions that allow you to write to and read from XLSX / XLSM / XLTM files. Supports reading and writing spreadsheet documents generated by Microsoft Excel™ 2007 and later.

Reading spreadsheet

The following constitutes the bare to read a spreadsheet document.

extern crate excelize_rs;

use excelize_rs::*;

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].