started with xls import
This commit is contained in:
parent
7d405234d4
commit
e295c6a743
7 changed files with 73 additions and 4 deletions
18
src/core/excelreader.cpp
Normal file
18
src/core/excelreader.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "excelreader.h"
|
||||
|
||||
#include <xlnt/xlnt.hpp>
|
||||
|
||||
void ExcelReader::readSellersFromFile(const std::string& filename, Marketplace* market)
|
||||
{
|
||||
xlnt::workbook wb;
|
||||
wb.load(filename);
|
||||
auto ws = wb.sheet_by_index(0);
|
||||
|
||||
const int START_ROW = 6;
|
||||
const int END_ROW = 349;
|
||||
|
||||
for (const auto& row : ws.rows(false)) {
|
||||
//auto test = row[0].value<int>();
|
||||
//std::cout << test << "\n";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue