-
-
Notifications
You must be signed in to change notification settings - Fork 422
Expand file tree
/
Copy pathpageMargins.cpp
More file actions
56 lines (43 loc) · 1010 Bytes
/
pageMargins.cpp
File metadata and controls
56 lines (43 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// pageMargins.cpp
#include "xlsxcellrange.h"
#include "xlsxchart.h"
#include "xlsxchartsheet.h"
#include "xlsxdocument.h"
#include "xlsxrichstring.h"
#include "xlsxworkbook.h"
#include <QDebug>
#include <QObject>
#include <QString>
#include <QtGlobal>
QXLSX_USE_NAMESPACE
#include <cstdio>
#include <iostream>
// using namespace std;
int pageMargin(bool isTest);
int pages()
{
pageMargin(true);
return 0;
}
int pageMargin(bool isTest)
{
if (!isTest)
return (-1);
// TODO:
/*
Document xlsx;
xlsx.write("A1", "Hello QtXlsx!"); // current file is utf-8 character-set.
xlsx.write("A2", 12345);
xlsx.write("A3", "=44+33"); // cell value is 77.
xlsx.write("A4", true);
xlsx.write("A5", "http://qt-project.org");
xlsx.write("A6", QDate(2013, 12, 27));
xlsx.write("A7", QTime(6, 30));
if (!xlsx.saveAs("WriteExcel.xlsx"))
{
qDebug() << "[WriteExcel] failed to save excel file";
return (-2);
}
*/
return 0;
}