-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from QtExcel/dev4
update simplexlsx to v0.34
- Loading branch information
Showing
34 changed files
with
2,438 additions
and
2,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <iostream> | ||
|
||
#include <Xlsx/Workbook.h> | ||
|
||
using namespace SimpleXlsx; | ||
|
||
int main() | ||
{ | ||
CWorkbook Book( "Incognito" ); | ||
CWorksheet & Sheet = Book.AddSheet( "Sheet 1" ); | ||
CWorksheet & SecondSheet = Book.AddSheet( "Sheet 2" ); | ||
|
||
Book.AddDefinedName( "HalfRad", 0.5, "Half radian" ).AddDefinedName( "TestSin", "sin(HalfRad)" ); | ||
Book.AddDefinedName( "SingleCell", Sheet, CellCoord( 1, 0 ) ); | ||
Book.AddDefinedName( "RangeCells", Sheet, CellCoord( 1, 0 ), CellCoord( 2, 0 ) ); | ||
Book.AddDefinedName( "TestScope", Sheet, CellCoord( 1, 0 ), "", & SecondSheet ); | ||
|
||
Sheet.AddSimpleRow( "=HalfRad" ).AddSimpleRow( "=TestSin" ); | ||
Sheet.AddSimpleRow( "=SingleCell" ).AddSimpleRow( "=sum(RangeCells)" ); | ||
|
||
SecondSheet.AddSimpleRow( "=TestScope" ); | ||
|
||
if( Book.Save( "DefinedNames.xlsx" ) ) std::cout << "The book has been saved successfully" << std::endl; | ||
else std::cout << "The book saving has been failed" << std::endl; | ||
return 0; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.