xlnt/docs/samples/sample1.cpp

9 lines
252 B
C++
Raw Normal View History

2014-05-07 05:28:38 +08:00
#include "../include/xlnt/reader.h"
int main()
{
auto wb = xlnt::reader::load_workbook("empty_book.xlsx");
auto sheet_ranges = wb.get_sheet_by_name("range names");
std::cout << (std::string)sheet_ranges.cell("D18").value() << std::endl;
}