Skip to content

Commit 6d4f74e

Browse files
committed
Playground changes
1 parent ec770e2 commit 6d4f74e

File tree

15 files changed

+15
-15
lines changed
  • Convert Excel to JSON
    • Range to JSON with Schema/.NET/Range to JSON with Schema/Range to JSON with Schema
    • Range to JSON without Schema/.NET/Range to JSON without Schema/Range to JSON without Schema
    • Workbook to JSON with Schema/.NET/Workbook to JSON with Schema/Workbook to JSON with Schema
    • Worksheet to JSON without Schema/.NET/Worksheet to JSON without Schema/Worksheet to JSON without Schema
  • Create and Edit Charts
  • Create and Edit Table/Table To Range/.NET/Table To Range/Table To Range
  • Excel to CSV/Excel to CSV/.NET/Excel to CSV/Excel to CSV
  • Excel to TSV/Excel to TSV/.NET/Excel to TSV/Excel to TSV
  • TSV to Excel/TSV to Excel/.NET/TSV to Excel/TSV to Excel
  • Worksheet Features/UnFreeze Panes/.NET/UnFreeze Panes/UnFreeze Panes

15 files changed

+15
-15
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
@@ -21,7 +21,7 @@ static void Main(string[] args)
2121

2222
#region save as JSON
2323
//Saves the workbook to a JSON filestream, as schema by default
24-
FileStream outputStream = new FileStream("Excel-Range-To-JSON-as-schema-default.json", FileMode.Create, FileAccess.ReadWrite);
24+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Excel-Range-To-JSON-as-schema-default.json"), FileMode.Create, FileAccess.ReadWrite);
2525
workbook.SaveAsJson(outputStream, range);
2626

2727
//Saves the workbook to a JSON filestream as schema

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

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

2222
#region save as JSON
2323
//Saves the workbook to a JSON filestream, as schema by default
24-
FileStream outputStream = new FileStream("Excel-Range-To-JSON-filestream-without-schema.json", FileMode.Create, FileAccess.ReadWrite);
24+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Excel-Range-To-JSON-filestream-without-schema.json"), FileMode.Create, FileAccess.ReadWrite);
2525
workbook.SaveAsJson(outputStream, range, false);
2626
#endregion
2727

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
@@ -18,7 +18,7 @@ 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-Workbook-To-JSON-as-schema-default.json", FileMode.Create, FileAccess.ReadWrite);
21+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Excel-Workbook-To-JSON-as-schema-default.json"), FileMode.Create, FileAccess.ReadWrite);
2222
workbook.SaveAsJson(outputStream);
2323

2424
//Saves the workbook to a JSON filestream as schema

Convert Excel to JSON/Worksheet to JSON without Schema/.NET/Worksheet to JSON without Schema/Worksheet 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 filestream, as schema by default
21-
FileStream outputStream = new FileStream("Excel-Worksheet-To-JSON-filestream-without-schema.json", FileMode.Create, FileAccess.ReadWrite);
21+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Excel-Worksheet-To-JSON-filestream-without-schema.json"), FileMode.Create, FileAccess.ReadWrite);
2222
workbook.SaveAsJson(outputStream, worksheet,false);
2323
#endregion
2424

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static void Main(string[] args)
8383
chart.PrimaryValueAxis.HasMinorGridLines = false;
8484

8585
//Saving the workbook as stream
86-
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
86+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
8787
workbook.SaveAs(outputStream);
8888

8989
//Dispose streams

Create and Edit Charts/Chart Area/.NET/Chart Area/Chart Area/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void Main(string[] args)
3131
chartArea.Fill.ForeColor = Color.White;
3232

3333
//Saving the workbook as stream
34-
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
34+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
3535
workbook.SaveAs(outputStream);
3636

3737
//Dispose streams

Create and Edit Charts/Chart Title/.NET/Chart Title/Chart Title/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void Main(string[] args)
3030
chart.ChartTitleArea.Layout.Left = 20;
3131

3232
//Saving the workbook as stream
33-
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
33+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
3434
workbook.SaveAs(outputStream);
3535
outputStream.Dispose();
3636
inputStream.Dispose();

Create and Edit Charts/Data Labels/.NET/Data Labels/Data Labels/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void Main(string[] args)
4646
(dataLabel as ChartDataLabelsImpl).NumberFormat = "#,##0.00";
4747

4848
//Saving the workbook as stream
49-
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
49+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
5050
workbook.SaveAs(outputStream);
5151

5252
//Dispose streams

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void Main(string[] args)
4848
chart.Legend.IncludeInLayout = true;
4949

5050
//Saving the workbook as stream
51-
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
51+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
5252
workbook.SaveAs(outputStream);
5353
outputStream.Dispose();
5454
inputStream.Dispose();

Create and Edit Charts/Plot Area/.NET/Plot Area/Plot Area/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void Main(string[] args)
3434
chartPlotArea.Layout.Left = 5;
3535

3636
//Saving the workbook as stream
37-
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite);
37+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite);
3838
workbook.SaveAs(outputStream);
3939

4040
//Dispose streams

0 commit comments

Comments
 (0)