Skip to content

Instantly share code, notes, and snippets.

@j2doll
Created October 17, 2017 05:16
Show Gist options
  • Save j2doll/f0cdb6ef52502e8e3711ec5fb1ffaf2c to your computer and use it in GitHub Desktop.
Save j2doll/f0cdb6ef52502e8e3711ec5fb1ffaf2c to your computer and use it in GitHub Desktop.
Hello Xlnt
#include <iostream>
#include <xlnt/xlnt.hpp>
int main()
{
    xlnt::workbook wb;
    wb.load("/home/timothymccallum/test.xlsx");
    auto ws = wb.active_sheet();
    std::clog << "Processing spread sheet" << std::endl;
    for (auto row : ws.rows(false))
    {
        for (auto cell : row)
{
   std::clog << cell.to_string() << std::endl;
}
    }
    std::clog << "Processing complete" << std::endl;
    return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment