Skip to content

Commit

Permalink
Update Example.md
Browse files Browse the repository at this point in the history
  • Loading branch information
j2doll authored Jan 21, 2025
1 parent 8f8f9c4 commit 9e4ebc0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Example.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,21 @@ int main(int argc, char *argv[])
![](markdown.data/copycat.png)
![](markdown.data/copycat2.jpg)
## [csv](https://github.com/QtExcel/QXlsx/tree/master/csv)
- Save the `xlsx` file as a `csv` file.
```cpp
QString xlsxFileName = ":/test.xlsx";
QXlsx::Document xlsxDoc(xlsxFileName);
if (!xlsxDoc.isLoadPackage()) {
return 0; // failed to load
}
QString csvFileName = "hello.csv";
if ( xlsxDoc.saveAsCsv(csvFileName) ){
qDebug() << "save as csv file";
}
```



0 comments on commit 9e4ebc0

Please sign in to comment.