Skip to content

Commit

Permalink
Added examples for articles
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-lyagin-aspose committed Oct 17, 2024
1 parent cca0763 commit fb42df8
Show file tree
Hide file tree
Showing 124 changed files with 2,177 additions and 0 deletions.
1,070 changes: 1,070 additions & 0 deletions Examples/ApiExamples/ApiExamples/LinqTemp/ExReportingEngine.cs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Examples/Data/Golds/LINQ/Table Report Gold.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
32 changes: 32 additions & 0 deletions Examples/Data/LINQ/Cross Table Data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"regions": [
{ "region": "North America" },
{ "region": "Europe" },
{ "region": "Asia" }
],
"products": [
{
"name": "Product A",
"sales": [
{ "region": "North America", "value": 112000 },
{ "region": "Europe", "value": 230000 },
{ "region": "Asia", "value": 153000 }
]
},
{
"name": "Product B",
"sales": [
{ "region": "Europe", "value": 150000 },
{ "region": "Asia", "value": 133000 }
]
},
{
"name": "Product C",
"sales": [
{ "region": "North America", "value": 211000 },
{ "region": "Europe", "value": 102000 },
{ "region": "Asia", "value": 124000 }
]
}
]
}
Binary file added Examples/Data/LINQ/Cross Table Template.docx
Binary file not shown.
58 changes: 58 additions & 0 deletions Examples/Data/LINQ/Cross Table with Merged Cells Data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"years": [
{ "year": 2020 },
{ "year": 2021 },
{ "year": 2022 },
{ "year": 2023 }
],
"managers": [
{
"name": "James Atkins",
"city": "Seattle",
"contracts": [
{ "year": 2020, "price": 290000 },
{ "year": 2020, "price": 255000 },
{ "year": 2021, "price": 340000 },
{ "year": 2022, "price": 285000 },
{ "year": 2022, "price": 335000 },
{ "year": 2023, "price": 245000 },
{ "year": 2023, "price": 265000 }
]
},
{
"name": "John Lee",
"city": "Seattle",
"contracts": [
{ "year": 2020, "price": 120000 },
{ "year": 2021, "price": 320000 },
{ "year": 2022, "price": 280000 },
{ "year": 2022, "price": 285000 },
{ "year": 2023, "price": 245000 },
{ "year": 2023, "price": 250000 }
]
},
{
"name": "Thelma Green",
"city": "Ottawa",
"contracts": [
{ "year": 2020, "price": 310000 },
{ "year": 2021, "price": 290000 },
{ "year": 2022, "price": 240000 },
{ "year": 2022, "price": 245000 },
{ "year": 2023, "price": 260000 },
{ "year": 2023, "price": 270000 }
]
},
{
"name": "Ted LeMark",
"city": "Ottawa",
"contracts": [
{ "year": 2021, "price": 110000 },
{ "year": 2022, "price": 155000 },
{ "year": 2022, "price": 190000 },
{ "year": 2023, "price": 180000 },
{ "year": 2023, "price": 200000 }
]
}
]
}
Binary file not shown.
43 changes: 43 additions & 0 deletions Examples/Data/LINQ/Cross Table with Totals Data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"quarters": [
{ "quarter": "Q1" },
{ "quarter": "Q2" }
],
"departments": [
{
"name": "Operations",
"revenue": [
{ "quarter": "Q1", "value": 33000 },
{ "quarter": "Q2", "value": 35000 }
]
},
{
"name": "Customer Service",
"revenue": [
{ "quarter": "Q1", "value": 38000 },
{ "quarter": "Q2", "value": 43000 }
]
},
{
"name": "Sales",
"revenue": [
{ "quarter": "Q1", "value": 31000 },
{ "quarter": "Q2", "value": 32000 }
]
},
{
"name": "Finance",
"revenue": [
{ "quarter": "Q1", "value": 39000 },
{ "quarter": "Q2", "value": 45000 }
]
},
{
"name": "Marketing",
"revenue": [
{ "quarter": "Q1", "value": 29000 },
{ "quarter": "Q2", "value": 32000 }
]
}
]
}
Binary file not shown.
32 changes: 32 additions & 0 deletions Examples/Data/LINQ/Horizontal Table Data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"meetingDate": "2023-10-15",
"department": "Product Development",
"agenda": "New product features",
"attendees": 5
},
{
"meetingDate": "2023-10-16",
"department": "Sales",
"agenda": "Quarterly targets",
"attendees": 8
},
{
"meetingDate": "2023-10-17",
"department": "HR",
"agenda": "Employee training programs",
"attendees": 6
},
{
"meetingDate": "2023-10-18",
"department": "Marketing",
"agenda": "Social media strategy",
"attendees": 4
},
{
"meetingDate": "2023-10-19",
"department": "Finance",
"agenda": "Budget planning",
"attendees": 7
}
]
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"division": "Division A",
"orders": [
{ "quarter": "Q1", "delivered": 995, "cancelled": 102 },
{ "quarter": "Q2", "delivered": 1163, "cancelled": 113 },
{ "quarter": "Q3", "delivered": 1321, "cancelled": 120 },
{ "quarter": "Q4", "delivered": 1365, "cancelled": 126 }
]
},
{
"division": "Division B",
"orders": [
{ "quarter": "Q1", "delivered": 1554, "cancelled": 153 },
{ "quarter": "Q2", "delivered": 1590, "cancelled": 161 },
{ "quarter": "Q3", "delivered": 1643, "cancelled": 172 },
{ "quarter": "Q4", "delivered": 1711, "cancelled": 189 }
]
}
]
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"name": "Technology",
"sectors": [
{ "name": "Software", "sales": 145000 },
{ "name": "Hardware", "sales": 132000 }
]
},
{
"name": "Finance",
"sectors": [
{ "name": "Banking", "sales": 156000 },
{ "name": "Insurance", "sales": 144000 }
]
}
]
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"supplierName": "A Company",
"contactPerson": "Alice Thompson",
"phone": "555-6789",
"email": "[email protected]"
},
{
"supplierName": "B Ltd.",
"contactPerson": "Tom Wilson",
"phone": "555-9876",
"email": "[email protected]"
},
{
"supplierName": "C & D",
"contactPerson": "Emily Roberts",
"phone": "555-3456",
"email": "[email protected]"
},
{
"supplierName": "E Corp.",
"contactPerson": "Henry Evans",
"phone": "555-6543",
"email": "[email protected]"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[
]
Binary file not shown.
32 changes: 32 additions & 0 deletions Examples/Data/LINQ/Horizontal Table with Total Data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"campaignName": "Holiday Sale",
"startDate": "2023-11-01",
"endDate": "2023-12-31",
"budget": 10000
},
{
"campaignName": "Spring Promotion",
"startDate": "2024-03-01",
"endDate": "2024-04-30",
"budget": 15000
},
{
"campaignName": "Back to School",
"startDate": "2024-08-01",
"endDate": "2024-09-15",
"budget": 12000
},
{
"campaignName": "Winter Clearance",
"startDate": "2024-12-01",
"endDate": "2024-12-31",
"budget": 8000
},
{
"campaignName": "New Year Bash",
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"budget": 5000
}
]
Binary file not shown.
26 changes: 26 additions & 0 deletions Examples/Data/LINQ/Single-Column Table Data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"customerName": "Alice Greenfield",
"feedbackDate": "2023-10-11",
"rating": 4,
"comments": "Great service!"
},
{
"customerName": "David Anderson",
"feedbackDate": "2023-10-12",
"rating": 5,
"comments": "Loved the product!"
},
{
"customerName": "Sophia Montgomery",
"feedbackDate": "2023-10-13",
"rating": 3,
"comments": "Average experience."
},
{
"customerName": "Emily Carter",
"feedbackDate": "2023-10-14",
"rating": 5,
"comments": "Completely satisfied!"
}
]
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"productName": "Wireless Mouse",
"category": "Electronics",
"price": 25.99,
"stockQuantity": 150,
"supplierName": "A Company",
"showQuantity": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"productName": "Wireless Mouse",
"category": "Electronics",
"price": 25.99,
"stockQuantity": 150,
"supplierName": "A Company",
"showQuantity": false
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"leadName": "F & Partners",
"contactPerson": "John Adams",
"status": "Qualified",
"potentialValue": 50000
},
{
"leadName": "G & Co.",
"contactPerson": "Sara Miller",
"status": "Contacted",
"potentialValue": 75000
},
{
"leadName": "H Group",
"contactPerson": "Tom Green",
"status": "New",
"potentialValue": 30000
},
{
"leadName": "I & Sons",
"contactPerson": "Anna Blue",
"status": "Follow-up",
"potentialValue": 60000
}
]
Binary file not shown.
6 changes: 6 additions & 0 deletions Examples/Data/LINQ/Table Data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"customerName": "Alice Greenfield",
"orderDate": "2023-02-15",
"totalAmount": 150.75,
"status": "Shipped"
}
Binary file added Examples/Data/LINQ/Table Template.docx
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"projectName": "Website Redesign",
"startDate": "2023-01-05",
"endDate": "2023-06-30",
"budget": 25000
},
{
"projectName": "Mobile App Development",
"startDate": "2023-03-15",
"endDate": "2023-09-15",
"budget": 35000
},
{
"projectName": "CRM Integration",
"startDate": "2023-06-01",
"endDate": "2023-12-31",
"budget": 20000
},
{
"projectName": "Data Migration",
"startDate": "2023-07-01",
"endDate": "2023-10-30",
"budget": 15000
},
{
"projectName": "E-commerce Platform Launch",
"startDate": "2023-08-01",
"endDate": "2024-01-15",
"budget": 50000
}
]
Binary file not shown.
Loading

0 comments on commit fb42df8

Please sign in to comment.