Skip to content

Commit 6f43802

Browse files
authored
Merge pull request #135 from SyncfusionExamples/902922-Fixplayground
902992: Fix folder structure
2 parents fa8c3cd + 310a9b3 commit 6f43802

File tree

82 files changed

+112
-35
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+112
-35
lines changed

Convert Excel to JSON/Range to JSON with Schema/.NET/Range to JSON with Schema/Range to JSON with Schema/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static void Main(string[] args)
2525
workbook.SaveAsJson(outputStream, range);
2626

2727
//Saves the workbook to a JSON filestream as schema
28-
FileStream stream1 = new FileStream("Excel-Range-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite);
28+
FileStream stream1 = new FileStream("Output/Excel-Range-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite);
2929
workbook.SaveAsJson(stream1, range, true);
3030
#endregion
3131

Convert Excel to JSON/Workbook to JSON with Schema/.NET/Workbook to JSON with Schema/Workbook to JSON with Schema/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static void Main(string[] args)
2222
workbook.SaveAsJson(outputStream);
2323

2424
//Saves the workbook to a JSON filestream as schema
25-
FileStream stream1 = new FileStream("Excel-Workbook-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite);
25+
FileStream stream1 = new FileStream("Output/Excel-Workbook-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite);
2626
workbook.SaveAsJson(stream1, true);
2727
#endregion
2828

Convert Excel to JSON/Workbook to JSON without Schema/.NET/Workbook to JSON without Schema/Workbook to JSON without Schema/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static void Main(string[] args)
1818

1919
#region save as JSON
2020
//Saves the workbook to a JSON file without schema
21-
FileStream outputStream = new FileStream("Workbook-To-JSON-without-schema.json", FileMode.Create);
21+
FileStream outputStream = new FileStream("Output/Workbook-To-JSON-without-schema.json", FileMode.Create);
2222
workbook.SaveAsJson(outputStream,false);
2323
#endregion
2424

Convert Excel to JSON/Worksheet to JSON with Schema/.NET/Worksheet to JSON with Schema/Worksheet to JSON with Schema/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ static void Main(string[] args)
1818

1919
#region save as JSON
2020
//Saves the workbook to a JSON filestream, as schema by default
21-
FileStream outputStream = new FileStream("Excel-Worksheet-To-JSON-filestream-as-schema-default.json", FileMode.Create);
21+
FileStream outputStream = new FileStream("Output/Excel-Worksheet-To-JSON-filestream-as-schema-default.json", FileMode.Create);
2222
workbook.SaveAsJson(outputStream, worksheet);
2323

2424
//Saves the workbook to a JSON filestream as schema
25-
FileStream stream1 = new FileStream("Excel-Worksheet-To-JSON-filestream-as-schema.json", FileMode.Create, FileAccess.ReadWrite);
25+
FileStream stream1 = new FileStream("Output/Excel-Worksheet-To-JSON-filestream-as-schema.json", FileMode.Create, FileAccess.ReadWrite);
2626
workbook.SaveAsJson(stream1, worksheet, true);
2727
#endregion
2828

Create and Edit CSV/CsvToExcel/CsvToExcel/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static void Main(string[] args)
2828
filter.AddTextFilter("Wednesday");
2929

3030
//Saving the CSV data as Excel
31-
FileStream outputStream = new FileStream(@"PurchasedItems.xlsx", FileMode.Create, FileAccess.ReadWrite);
31+
FileStream outputStream = new FileStream("Output/PurchasedItems.xlsx", FileMode.Create, FileAccess.ReadWrite);
3232

3333
workbook.SaveAs(outputStream);
3434
}

Create and Edit CSV/CustomCsvSeparator/CustomCsvSeparator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static void Main(string[] args)
1919

2020

2121
//Saving the CSV data with separator as ";"
22-
FileStream outputStream = new FileStream(@"PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite);
22+
FileStream outputStream = new FileStream("Output/PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite);
2323

2424
workbook.SaveAs(outputStream, ";");
2525
}

Create and Edit CSV/ExcelToCSV/ExcelToCSV/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static void Main(string[] args)
1818
IWorkbook workbook = application.Workbooks.Open(inputStream);
1919

2020
//Saving the Excel data as CSV
21-
FileStream outputStream = new FileStream(@"PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite);
21+
FileStream outputStream = new FileStream("Output/PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite);
2222

2323

2424
workbook.SaveAs(outputStream,",");

Create and Edit Charts/Series/.NET/Series/Series/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static void Main(string[] args)
7575
chart.BottomRow = 25;
7676

7777
//Saving the workbook as stream
78-
FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
78+
FileStream stream = new FileStream("Output/Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
7979
workbook.SaveAs(stream);
8080

8181
//Dispose streams

Create and Edit Table/ExcelTable/ExcelTable/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void CreateTable()
1919
{
2020
IApplication application = excelEngine.Excel;
2121
application.DefaultVersion = ExcelVersion.Xlsx;
22-
FileStream fileStream = new FileStream("../../../Data/SalesReport.xlsx", FileMode.Open, FileAccess.Read);
22+
FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/SalesReport.xlsx"), FileMode.Open, FileAccess.Read);
2323
IWorkbook workbook = application.Workbooks.Open(fileStream, ExcelOpenType.Automatic);
2424
IWorksheet worksheet = workbook.Worksheets[0];
2525

Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Access Used Range.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<ItemGroup>
1414
<None Update="Output\*">
1515
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
16+
</None>
17+
<None Update="Data\*">
18+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
1619
</None>
1720
</ItemGroup>
1821

0 commit comments

Comments
 (0)