diff --git a/Create and Edit Charts/Axis/.NET/Axis/Axis/Program.cs b/Create and Edit Charts/Axis/.NET/Axis/Axis/Program.cs index 5bffedb7..f735bbd0 100644 --- a/Create and Edit Charts/Axis/.NET/Axis/Axis/Program.cs +++ b/Create and Edit Charts/Axis/.NET/Axis/Axis/Program.cs @@ -1,6 +1,5 @@ using Syncfusion.XlsIO; using Syncfusion.Drawing; -using static System.Net.Mime.MediaTypeNames; using System.Drawing; namespace Axis diff --git a/Create and Edit Charts/Pattern Fill/.NET/Pattern Fill/Pattern Fill/Program.cs b/Create and Edit Charts/Pattern Fill/.NET/Pattern Fill/Pattern Fill/Program.cs index 82b008f8..725a1821 100644 --- a/Create and Edit Charts/Pattern Fill/.NET/Pattern Fill/Pattern Fill/Program.cs +++ b/Create and Edit Charts/Pattern Fill/.NET/Pattern Fill/Pattern Fill/Program.cs @@ -1,7 +1,6 @@ using Syncfusion.XlsIO; using Syncfusion.XlsIO.Implementation.Charts; using Syncfusion.Drawing; -using static System.Net.Mime.MediaTypeNames; using Image = Syncfusion.Drawing.Image; namespace Pattern_Fill diff --git a/Editing Excel cell-styles/HTML String Formatting/.NET/HTML String Formatting/HTML String Formatting/Program.cs b/Editing Excel cell-styles/HTML String Formatting/.NET/HTML String Formatting/HTML String Formatting/Program.cs index ea055f5c..fc647c10 100644 --- a/Editing Excel cell-styles/HTML String Formatting/.NET/HTML String Formatting/HTML String Formatting/Program.cs +++ b/Editing Excel cell-styles/HTML String Formatting/.NET/HTML String Formatting/HTML String Formatting/Program.cs @@ -1,6 +1,6 @@ // See https://aka.ms/new-console-template for more information using Syncfusion.XlsIO; -using static System.Net.Mime.MediaTypeNames; + using (ExcelEngine excelEngine = new ExcelEngine()) { diff --git a/Pictures in Excel/Move and Size with cells/.NET/Move and Size with cells/Move and Size with cells/Program.cs b/Pictures in Excel/Move and Size with cells/.NET/Move and Size with cells/Move and Size with cells/Program.cs index eaffb070..31a7d711 100644 --- a/Pictures in Excel/Move and Size with cells/.NET/Move and Size with cells/Move and Size with cells/Program.cs +++ b/Pictures in Excel/Move and Size with cells/.NET/Move and Size with cells/Move and Size with cells/Program.cs @@ -29,7 +29,7 @@ public static void Main(string[] args) worksheet.HideColumn(5); //Saving the workbook as stream - FileStream OutputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite); + FileStream OutputStream = new FileStream(Path.GetFullPath(@"Output/Output.xlsx"), FileMode.Create, FileAccess.ReadWrite); workbook.SaveAs(OutputStream); //Dispose streams diff --git a/Pivot Table/Layout/Layout/Program.cs b/Pivot Table/Layout/Layout/Program.cs index fb2d188b..33f3c1fb 100644 --- a/Pivot Table/Layout/Layout/Program.cs +++ b/Pivot Table/Layout/Layout/Program.cs @@ -1,4 +1,5 @@ using Syncfusion.XlsIO; +using Syncfusion.XlsIO.Implementation.PivotTables; namespace Layout { @@ -19,7 +20,7 @@ public static void Main(String[] args) string fileName = "PivotTable_Layout.xlsx"; //Saving the workbook as stream - FileStream stream = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite); + FileStream stream = new FileStream(Path.GetFullPath(@"Output/PivotTable_Layout.xlsx"), FileMode.Create, FileAccess.ReadWrite); workbook.SaveAs(stream); stream.Dispose(); } diff --git a/What-If Analysis/Apply Scenario/.NET/Apply Scenario/Apply Scenario/Program.cs b/What-If Analysis/Apply Scenario/.NET/Apply Scenario/Apply Scenario/Program.cs index fc9fb447..9942b720 100644 --- a/What-If Analysis/Apply Scenario/.NET/Apply Scenario/Apply Scenario/Program.cs +++ b/What-If Analysis/Apply Scenario/.NET/Apply Scenario/Apply Scenario/Program.cs @@ -1,7 +1,6 @@ using System.IO; using Syncfusion.XlsIO; using System; -using static System.Net.Mime.MediaTypeNames; namespace Apply_Scenario { @@ -35,7 +34,7 @@ static void Main(string[] args) newSheet.Name = scenarios[pos].Name; //Saving the new workbook as a stream - using (FileStream stream = new FileStream(scenarios[pos].Name + ".xlsx", FileMode.Create, FileAccess.ReadWrite)) + using (FileStream stream = new FileStream(Path.GetFullPath(@"Output/" + scenarios[pos].Name + ".xlsx"), FileMode.Create, FileAccess.ReadWrite)) { newBook.SaveAs(stream); } diff --git a/What-If Analysis/Hide Scenario/.NET/Hide Scenario/Hide Scenario/Program.cs b/What-If Analysis/Hide Scenario/.NET/Hide Scenario/Hide Scenario/Program.cs index a0ab75b1..fad135ef 100644 --- a/What-If Analysis/Hide Scenario/.NET/Hide Scenario/Hide Scenario/Program.cs +++ b/What-If Analysis/Hide Scenario/.NET/Hide Scenario/Hide Scenario/Program.cs @@ -1,7 +1,6 @@ using System.IO; using Syncfusion.XlsIO; using System; -using static System.Net.Mime.MediaTypeNames; namespace Hide_Scenario { diff --git a/What-If Analysis/Protect Scenario/.NET/Protect Scenario/Protect Scenario/Program.cs b/What-If Analysis/Protect Scenario/.NET/Protect Scenario/Protect Scenario/Program.cs index ef8bd23b..3c0ebb1f 100644 --- a/What-If Analysis/Protect Scenario/.NET/Protect Scenario/Protect Scenario/Program.cs +++ b/What-If Analysis/Protect Scenario/.NET/Protect Scenario/Protect Scenario/Program.cs @@ -1,7 +1,6 @@ using System.IO; using Syncfusion.XlsIO; using System; -using static System.Net.Mime.MediaTypeNames; namespace Protect_Scenario { diff --git a/Worksheet Features/Copy Column/.NET/Copy Column/Copy Column/Program.cs b/Worksheet Features/Copy Column/.NET/Copy Column/Copy Column/Program.cs index 83ea3f65..32fcdf22 100644 --- a/Worksheet Features/Copy Column/.NET/Copy Column/Copy Column/Program.cs +++ b/Worksheet Features/Copy Column/.NET/Copy Column/Copy Column/Program.cs @@ -2,7 +2,6 @@ using Syncfusion.XlsIO.Implementation.Collections; using Syncfusion.XlsIO.Implementation; using Syncfusion.XlsIO.Interfaces; -using static System.Net.Mime.MediaTypeNames; namespace Copy_Column { diff --git a/Worksheet Features/Header and Footer/.NET/Header and Footer/Header and Footer/Program.cs b/Worksheet Features/Header and Footer/.NET/Header and Footer/Header and Footer/Program.cs index 4ccdcab4..0b37d16a 100644 --- a/Worksheet Features/Header and Footer/.NET/Header and Footer/Header and Footer/Program.cs +++ b/Worksheet Features/Header and Footer/.NET/Header and Footer/Header and Footer/Program.cs @@ -31,7 +31,7 @@ static void Main(string[] args) worksheet.PageSetup.RightFooter = "&P &K0000FF Right Footer"; //Saving the workbook as stream - FileStream stream = new FileStream("Output.xlsx", FileMode.Create); + FileStream stream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create); workbook.SaveAs(stream); stream.Dispose(); } diff --git a/Worksheet Features/PrintTitleColumns/.NET/PrintTitleColumns/PrintTitleColumns/Program.cs b/Worksheet Features/PrintTitleColumns/.NET/PrintTitleColumns/PrintTitleColumns/Program.cs index 6ee1c435..57ab448c 100644 --- a/Worksheet Features/PrintTitleColumns/.NET/PrintTitleColumns/PrintTitleColumns/Program.cs +++ b/Worksheet Features/PrintTitleColumns/.NET/PrintTitleColumns/PrintTitleColumns/Program.cs @@ -1,6 +1,5 @@ using System.IO; using Syncfusion.XlsIO; -using static System.Net.Mime.MediaTypeNames; namespace PrintTitleColumns { diff --git a/Worksheet Features/PrintTitleRows/.NET/PrintTitleRows/PrintTitleRows/Program.cs b/Worksheet Features/PrintTitleRows/.NET/PrintTitleRows/PrintTitleRows/Program.cs index 86f0ba51..5a404173 100644 --- a/Worksheet Features/PrintTitleRows/.NET/PrintTitleRows/PrintTitleRows/Program.cs +++ b/Worksheet Features/PrintTitleRows/.NET/PrintTitleRows/PrintTitleRows/Program.cs @@ -1,6 +1,5 @@ using System.IO; using Syncfusion.XlsIO; -using static System.Net.Mime.MediaTypeNames; namespace PrintTitleRows { diff --git a/XlsIO-Excel-Protect-UnProtect/Protect-Workbook/.NET/Protect-Workbook/ProtectWorkbook/Data/InputWorkbook.xlsx b/XlsIO-Excel-Protect-UnProtect/Protect-Workbook/.NET/Protect-Workbook/ProtectWorkbook/Data/InputWorkbook.xlsx index a3d5eb4b..67e40a0a 100644 Binary files a/XlsIO-Excel-Protect-UnProtect/Protect-Workbook/.NET/Protect-Workbook/ProtectWorkbook/Data/InputWorkbook.xlsx and b/XlsIO-Excel-Protect-UnProtect/Protect-Workbook/.NET/Protect-Workbook/ProtectWorkbook/Data/InputWorkbook.xlsx differ