You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
394 B
19 lines
394 B
11 years ago
|
#include "xlsxdocument.h"
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
//Generate a simple xlsx file at first.
|
||
|
QXlsx::Document xlsx;
|
||
|
xlsx.write("A1", "Hello Qt!");
|
||
|
xlsx.write("A2", 500);
|
||
|
xlsx.saveAs("first.xlsx");
|
||
|
|
||
|
//Read, edit, save
|
||
|
QXlsx::Document xlsx2("first.xlsx");
|
||
|
xlsx2.addWorksheet("Second");
|
||
|
xlsx2.write("A1", "Hello Qt again!");
|
||
|
xlsx2.saveAs("second.xlsx");
|
||
|
|
||
|
return 0;
|
||
|
}
|