2018-12-20 15:30:29 +09:00
|
|
|
// test.cpp
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QCoreApplication>
|
|
|
|
#include <QtCore>
|
|
|
|
#include <QVector>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QDebug>
|
2019-02-06 00:08:18 +09:00
|
|
|
#include <QDir>
|
2018-12-20 15:30:29 +09:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#include "xlsxdocument.h"
|
|
|
|
#include "xlsxchartsheet.h"
|
|
|
|
#include "xlsxcellrange.h"
|
|
|
|
#include "xlsxchart.h"
|
|
|
|
#include "xlsxrichstring.h"
|
|
|
|
#include "xlsxworkbook.h"
|
|
|
|
|
2019-06-01 23:54:22 +09:00
|
|
|
int test( QVector<QVariant> params );
|
|
|
|
|
|
|
|
int testIssue38();
|
|
|
|
int testIssue39();
|
|
|
|
|
2019-02-06 00:08:18 +09:00
|
|
|
int test( QVector<QVariant> params )
|
2018-12-20 15:30:29 +09:00
|
|
|
{
|
2019-02-23 20:42:21 +09:00
|
|
|
qDebug() << "[debug] current path : " << QDir::currentPath();
|
2019-02-06 00:08:18 +09:00
|
|
|
|
2019-02-15 18:55:56 +09:00
|
|
|
using namespace QXlsx;
|
|
|
|
|
|
|
|
Document output;
|
2019-06-01 23:54:22 +09:00
|
|
|
// TEST CODE
|
|
|
|
output.saveAs("test10.xlsx");
|
2019-02-15 18:55:56 +09:00
|
|
|
|
2019-06-01 23:54:22 +09:00
|
|
|
Document output2("test10.xlsx");
|
2019-02-23 20:42:21 +09:00
|
|
|
if ( output2.load() )
|
|
|
|
{
|
2019-06-01 23:54:22 +09:00
|
|
|
output2.saveAs("test20.xlsx");
|
|
|
|
qDebug() << "[debug] xlsx is saved.";
|
2019-02-23 20:42:21 +09:00
|
|
|
}
|
|
|
|
|
2018-12-20 15:30:29 +09:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|