All Projects → QtExcel → Qxlnt

QtExcel / Qxlnt

Licence: MIT license
Use xlnt in Qt 5 or 6. xlnt is cross-platform user-friendly xlsx library for C++14.

Programming Languages

C++
36643 projects - #6 most used programming language
QMake
1090 projects

Projects that are alternatives of or similar to Qxlnt

Xresloader
跨平台Excel导表工具(Excel=>protobuf/msgpack/lua/javascript/json/xml)
Stars: ✭ 161 (+143.94%)
Mutual labels:  excel, xlsx
xlsx-reader
xlsx-reader is a PHP library for fast and efficient reading of XLSX spreadsheet files. Its focus is on reading the data contained within XLSX files, disregarding all document styling beyond that which is strictly necessary for data type recognition. It is built to be usable for very big XLSX files in the magnitude of multiple GBs.
Stars: ✭ 40 (-39.39%)
Mutual labels:  excel, xlsx
Excelmapper
Map POCO objects to Excel files
Stars: ✭ 166 (+151.52%)
Mutual labels:  excel, xlsx
Vue Xlsx Table
Not need upload, view xlsx or xls file in your browser, Supported by js-xlsx.
Stars: ✭ 136 (+106.06%)
Mutual labels:  excel, xlsx
xls2db
Export table data from excel to mysql database, implemented with python.
Stars: ✭ 33 (-50%)
Mutual labels:  excel, xlsx
Test files
📚 SheetJS Test Files (XLS/XLSX/XLSB and other spreadsheet formats)
Stars: ✭ 150 (+127.27%)
Mutual labels:  excel, xlsx
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+3437.88%)
Mutual labels:  excel, xlsx
Phpspreadsheet
A pure PHP library for reading and writing spreadsheet files
Stars: ✭ 10,627 (+16001.52%)
Mutual labels:  excel, xlsx
xlstream
Turns XLSX into a readable stream.
Stars: ✭ 148 (+124.24%)
Mutual labels:  excel, xlsx
Closedxml
ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
Stars: ✭ 2,799 (+4140.91%)
Mutual labels:  excel, xlsx
Xlsx
Fast and reliable way to work with Microsoft Excel™ [xlsx] files in Golang
Stars: ✭ 132 (+100%)
Mutual labels:  excel, xlsx
Sylvan.Data.Excel
The fastest .NET library for reading Excel data files.
Stars: ✭ 65 (-1.52%)
Mutual labels:  excel, xlsx
Php Ext Xlswriter
🚀 PHP Extension for creating and reader XLSX files.
Stars: ✭ 1,734 (+2527.27%)
Mutual labels:  excel, xlsx
Writexl
Portable, light-weight data frame to xlsx exporter for R
Stars: ✭ 162 (+145.45%)
Mutual labels:  excel, xlsx
Xlsx
Simple and incomplete Excel file parser/writer
Stars: ✭ 110 (+66.67%)
Mutual labels:  excel, xlsx
Xlsxir
Xlsx parser for the Elixir language.
Stars: ✭ 167 (+153.03%)
Mutual labels:  excel, xlsx
Bookfx
Composing Excel spreadsheets based on a tree of nested components like the HTML DOM.
Stars: ✭ 102 (+54.55%)
Mutual labels:  excel, xlsx
Php xlsxwriter
Lightwight XLSX Excel Spreadsheet Writer in PHP
Stars: ✭ 1,376 (+1984.85%)
Mutual labels:  excel, xlsx
Fast excel
Ultra Fast Excel Writer for Ruby
Stars: ✭ 181 (+174.24%)
Mutual labels:  excel, xlsx
spreadcheetah
SpreadCheetah is a high-performance .NET library for generating spreadsheet (Microsoft Excel XLSX) files.
Stars: ✭ 107 (+62.12%)
Mutual labels:  excel, xlsx

Qxlnt

Read this in other languages: English, 🇰🇷 한국어

  • Qxlnt is a helper project that allows xlnt to be used in Qt.
  • xlnt is xlsx library that using C++14. See 'License and links' for more information.

Why did you make it?

  • xlnt is a excellent library for using xlsx Excel files. 👍
  • I was looking for a way to make it easy to use in Qt. Of course, cmake is compatible with Qt, but it is not convenient to use. So I created Qxlnt.

Hello World (HelloQXlnt)

1️⃣ Writing a excel(xlsx) file

#include <iostream>
#include <xlnt/xlnt.hpp>
#include <QCoreApplication>

int main(int argc, char **argv)
{     
    QCoreApplication a(argc, argv); // It is a Qt code.

    xlnt::workbook wb; // It is a xlnt code. Mix it together!
    xlnt::worksheet ws = wb.active_sheet();
    ws.cell("A1").value(5);
    ws.cell("B2").value("string data");
    ws.cell("C3").formula("=RAND()");
    ws.merge_cells("C3:C4");
    ws.freeze_panes("B2");
    wb.save("example.xlsx");

    return 0;
}

2️⃣ Reading from an existing xlsx spread sheet.

// https://tfussell.gitbooks.io/xlnt/content/docs/introduction/Examples.html

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;

Notice

Prerequisite

  • C++14 or higher version is required.
    • gcc 4.x(4.8 or below) is not supported. Current(2018) gcc version is 7.x.
    • If you use Visual C++, then use VS 2017 or higher version.
    • Visual Studio 2017 supports Qt 5.9.1 or higher. Qt 5.10 or later is recommended.

Test

Travis CI
Build Status

To Do

  • Testing in various Qt environments. ☁️
  • Unicode Test (filename, file path, data value)

License and links

📫 Contact

Similar projects

QXlsx https://github.com/QtExcel/QXlsx

  • QXlsx is excel file(*.xlsx) reader/writer library.
  • Because QtXlsx is no longer supported(2014), I created a new project that is based on QtXlsx. (2017-)
  • Development language of QXlsx is C++. (with Qt)
  • You don't need to use static library or dynamic shared object using QXlsx.

Qlibxlsxwriter https://github.com/QtExcel/Qlibxlsxwriter

  • Qlibxlsxwriter is a helper project that allows libxlsxwriter to be used in Qt.
  • libxlsxwriter is a C library for creating Excel XLSX files. 👍

QSimpleXlsxWriter https://github.com/QtExcel/QSimpleXlsxWriter

  • Use SimpleXlsxWriter in Qt.
  • SimpleXlsxWriter is C++ library for creating XLSX files for MS Excel 2007 and above.
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].