diff --git a/Convert Excel to JSON/Range to JSON with Schema/.NET/Range to JSON with Schema/Range to JSON with Schema/Program.cs b/Convert Excel to JSON/Range to JSON with Schema/.NET/Range to JSON with Schema/Range to JSON with Schema/Program.cs index 7571eb2f..e73cbbca 100644 --- a/Convert Excel to JSON/Range to JSON with Schema/.NET/Range to JSON with Schema/Range to JSON with Schema/Program.cs +++ b/Convert Excel to JSON/Range to JSON with Schema/.NET/Range to JSON with Schema/Range to JSON with Schema/Program.cs @@ -25,7 +25,7 @@ static void Main(string[] args) workbook.SaveAsJson(outputStream, range); //Saves the workbook to a JSON filestream as schema - FileStream stream1 = new FileStream("Excel-Range-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite); + FileStream stream1 = new FileStream("Output/Excel-Range-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite); workbook.SaveAsJson(stream1, range, true); #endregion diff --git a/Convert Excel to JSON/Workbook to JSON with Schema/.NET/Workbook to JSON with Schema/Workbook to JSON with Schema/Program.cs b/Convert Excel to JSON/Workbook to JSON with Schema/.NET/Workbook to JSON with Schema/Workbook to JSON with Schema/Program.cs index 6bd634fd..00008c17 100644 --- a/Convert Excel to JSON/Workbook to JSON with Schema/.NET/Workbook to JSON with Schema/Workbook to JSON with Schema/Program.cs +++ b/Convert Excel to JSON/Workbook to JSON with Schema/.NET/Workbook to JSON with Schema/Workbook to JSON with Schema/Program.cs @@ -22,7 +22,7 @@ static void Main(string[] args) workbook.SaveAsJson(outputStream); //Saves the workbook to a JSON filestream as schema - FileStream stream1 = new FileStream("Excel-Workbook-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite); + FileStream stream1 = new FileStream("Output/Excel-Workbook-To-JSON-as-schema.json", FileMode.Create, FileAccess.ReadWrite); workbook.SaveAsJson(stream1, true); #endregion diff --git a/Convert Excel to JSON/Workbook to JSON without Schema/.NET/Workbook to JSON without Schema/Workbook to JSON without Schema/Program.cs b/Convert Excel to JSON/Workbook to JSON without Schema/.NET/Workbook to JSON without Schema/Workbook to JSON without Schema/Program.cs index 7f918421..c3060aba 100644 --- a/Convert Excel to JSON/Workbook to JSON without Schema/.NET/Workbook to JSON without Schema/Workbook to JSON without Schema/Program.cs +++ b/Convert Excel to JSON/Workbook to JSON without Schema/.NET/Workbook to JSON without Schema/Workbook to JSON without Schema/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) #region save as JSON //Saves the workbook to a JSON file without schema - FileStream outputStream = new FileStream("Workbook-To-JSON-without-schema.json", FileMode.Create); + FileStream outputStream = new FileStream("Output/Workbook-To-JSON-without-schema.json", FileMode.Create); workbook.SaveAsJson(outputStream,false); #endregion diff --git a/Convert Excel to JSON/Worksheet to JSON with Schema/.NET/Worksheet to JSON with Schema/Worksheet to JSON with Schema/Program.cs b/Convert Excel to JSON/Worksheet to JSON with Schema/.NET/Worksheet to JSON with Schema/Worksheet to JSON with Schema/Program.cs index 603f9334..318ef158 100644 --- a/Convert Excel to JSON/Worksheet to JSON with Schema/.NET/Worksheet to JSON with Schema/Worksheet to JSON with Schema/Program.cs +++ b/Convert Excel to JSON/Worksheet to JSON with Schema/.NET/Worksheet to JSON with Schema/Worksheet to JSON with Schema/Program.cs @@ -18,11 +18,11 @@ static void Main(string[] args) #region save as JSON //Saves the workbook to a JSON filestream, as schema by default - FileStream outputStream = new FileStream("Excel-Worksheet-To-JSON-filestream-as-schema-default.json", FileMode.Create); + FileStream outputStream = new FileStream("Output/Excel-Worksheet-To-JSON-filestream-as-schema-default.json", FileMode.Create); workbook.SaveAsJson(outputStream, worksheet); //Saves the workbook to a JSON filestream as schema - FileStream stream1 = new FileStream("Excel-Worksheet-To-JSON-filestream-as-schema.json", FileMode.Create, FileAccess.ReadWrite); + FileStream stream1 = new FileStream("Output/Excel-Worksheet-To-JSON-filestream-as-schema.json", FileMode.Create, FileAccess.ReadWrite); workbook.SaveAsJson(stream1, worksheet, true); #endregion diff --git a/Create and Edit CSV/CsvToExcel/CsvToExcel/Program.cs b/Create and Edit CSV/CsvToExcel/CsvToExcel/Program.cs index 219a4dad..fead6375 100644 --- a/Create and Edit CSV/CsvToExcel/CsvToExcel/Program.cs +++ b/Create and Edit CSV/CsvToExcel/CsvToExcel/Program.cs @@ -28,7 +28,7 @@ static void Main(string[] args) filter.AddTextFilter("Wednesday"); //Saving the CSV data as Excel - FileStream outputStream = new FileStream(@"PurchasedItems.xlsx", FileMode.Create, FileAccess.ReadWrite); + FileStream outputStream = new FileStream("Output/PurchasedItems.xlsx", FileMode.Create, FileAccess.ReadWrite); workbook.SaveAs(outputStream); } diff --git a/Create and Edit CSV/CustomCsvSeparator/CustomCsvSeparator/Program.cs b/Create and Edit CSV/CustomCsvSeparator/CustomCsvSeparator/Program.cs index 5ae811ae..e73ff804 100644 --- a/Create and Edit CSV/CustomCsvSeparator/CustomCsvSeparator/Program.cs +++ b/Create and Edit CSV/CustomCsvSeparator/CustomCsvSeparator/Program.cs @@ -19,7 +19,7 @@ static void Main(string[] args) //Saving the CSV data with separator as ";" - FileStream outputStream = new FileStream(@"PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite); + FileStream outputStream = new FileStream("Output/PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite); workbook.SaveAs(outputStream, ";"); } diff --git a/Create and Edit CSV/ExcelToCSV/ExcelToCSV/Program.cs b/Create and Edit CSV/ExcelToCSV/ExcelToCSV/Program.cs index 9a8032fb..3747e4b4 100644 --- a/Create and Edit CSV/ExcelToCSV/ExcelToCSV/Program.cs +++ b/Create and Edit CSV/ExcelToCSV/ExcelToCSV/Program.cs @@ -18,7 +18,7 @@ static void Main(string[] args) IWorkbook workbook = application.Workbooks.Open(inputStream); //Saving the Excel data as CSV - FileStream outputStream = new FileStream(@"PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite); + FileStream outputStream = new FileStream("Output/PurchasedItems.csv", FileMode.Create, FileAccess.ReadWrite); workbook.SaveAs(outputStream,","); diff --git a/Create and Edit Charts/Series/.NET/Series/Series/Program.cs b/Create and Edit Charts/Series/.NET/Series/Series/Program.cs index f1c8b3fe..ccc39db7 100644 --- a/Create and Edit Charts/Series/.NET/Series/Series/Program.cs +++ b/Create and Edit Charts/Series/.NET/Series/Series/Program.cs @@ -75,7 +75,7 @@ public static void Main(string[] args) chart.BottomRow = 25; //Saving the workbook as stream - FileStream stream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.ReadWrite); + FileStream stream = new FileStream("Output/Output.xlsx", FileMode.Create, FileAccess.ReadWrite); workbook.SaveAs(stream); //Dispose streams diff --git a/Create and Edit Table/ExcelTable/ExcelTable/Program.cs b/Create and Edit Table/ExcelTable/ExcelTable/Program.cs index b9013522..6424ecb7 100644 --- a/Create and Edit Table/ExcelTable/ExcelTable/Program.cs +++ b/Create and Edit Table/ExcelTable/ExcelTable/Program.cs @@ -19,7 +19,7 @@ public void CreateTable() { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream fileStream = new FileStream("../../../Data/SalesReport.xlsx", FileMode.Open, FileAccess.Read); + FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/SalesReport.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(fileStream, ExcelOpenType.Automatic); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Access Used Range.csproj b/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Access Used Range.csproj index e9d6ad01..0d967f90 100644 --- a/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Access Used Range.csproj +++ b/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Access Used Range.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/InputTemplate.xlsx b/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/InputTemplate.xlsx rename to Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Program.cs b/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Program.cs index 51158a30..bbeb4eb9 100644 --- a/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Program.cs +++ b/Editing Excel cells/Access Used Range/.NET/Access Used Range/Access Used Range/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Accessing Filter.csproj b/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Accessing Filter.csproj index 6bccbf97..ceaf66e5 100644 --- a/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Accessing Filter.csproj +++ b/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Accessing Filter.csproj @@ -8,6 +8,12 @@ + + Always + + + Always + diff --git a/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/InputTemplate.xlsx b/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/InputTemplate.xlsx rename to Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Output/.gitkeep b/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Program.cs b/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Program.cs index b13f6d1e..f43a78a2 100644 --- a/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Program.cs +++ b/Editing Excel cells/Accessing Filter/.NET/Accessing Filter/Accessing Filter/Program.cs @@ -12,7 +12,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Advanced Filter.csproj b/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Advanced Filter.csproj index 97119751..c1f189d5 100644 --- a/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Advanced Filter.csproj +++ b/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Advanced Filter.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/InputTemplate.xlsx b/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/InputTemplate.xlsx rename to Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Program.cs b/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Program.cs index f3e40afc..e920e7ef 100644 --- a/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Program.cs +++ b/Editing Excel cells/Advanced Filter/.NET/Advanced Filter/Advanced Filter/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Cell Color Filter.csproj b/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Cell Color Filter.csproj index 0b55f281..e8ec448d 100644 --- a/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Cell Color Filter.csproj +++ b/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Cell Color Filter.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/InputTemplate.xlsx b/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/InputTemplate.xlsx rename to Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Program.cs b/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Program.cs index accf91a5..50efc64e 100644 --- a/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Program.cs +++ b/Editing Excel cells/Cell Color Filter/.NET/Cell Color Filter/Cell Color Filter/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Clear Content.csproj b/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Clear Content.csproj index 6d7bd310..632fe5ea 100644 --- a/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Clear Content.csproj +++ b/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Clear Content.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/InputTemplate.xlsx b/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/InputTemplate.xlsx rename to Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Program.cs b/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Program.cs index 165356d1..afd1bf0e 100644 --- a/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Program.cs +++ b/Editing Excel cells/Clear Content/.NET/Clear Content/Clear Content/Program.cs @@ -12,7 +12,7 @@ static void Main(string[] args) IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Combination Filter.csproj b/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Combination Filter.csproj index 789e1f25..27d156d6 100644 --- a/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Combination Filter.csproj +++ b/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Combination Filter.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/InputTemplate.xlsx b/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/InputTemplate.xlsx rename to Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Program.cs b/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Program.cs index 40605f2a..a4579ae5 100644 --- a/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Program.cs +++ b/Editing Excel cells/Combination Filter/.NET/Combination Filter/Combination Filter/Program.cs @@ -12,7 +12,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Copy Range.csproj b/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Copy Range.csproj index 70fe1fba..28de1da0 100644 --- a/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Copy Range.csproj +++ b/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Copy Range.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/InputTemplate.xlsx b/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/InputTemplate.xlsx rename to Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Program.cs b/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Program.cs index 84a34504..a646a637 100644 --- a/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Program.cs +++ b/Editing Excel cells/Copy Range/.NET/Copy Range/Copy Range/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Custom Filter.csproj b/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Custom Filter.csproj index 2cfb8c2f..4253fbe7 100644 --- a/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Custom Filter.csproj +++ b/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Custom Filter.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/InputTemplate.xlsx b/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/InputTemplate.xlsx rename to Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Program.cs b/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Program.cs index 4b88f196..41c861a2 100644 --- a/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Program.cs +++ b/Editing Excel cells/Custom Filter/.NET/Custom Filter/Custom Filter/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/InputTemplate.xlsx b/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/InputTemplate.xlsx rename to Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Dynamic Filter.csproj b/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Dynamic Filter.csproj index c7d697e5..6c9e2b74 100644 --- a/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Dynamic Filter.csproj +++ b/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Dynamic Filter.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Program.cs b/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Program.cs index 2f237919..b3d9465c 100644 --- a/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Program.cs +++ b/Editing Excel cells/Dynamic Filter/.NET/Dynamic Filter/Dynamic Filter/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Filter/.NET/Filter/Filter/InputTemplate.xlsx b/Editing Excel cells/Filter/.NET/Filter/Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Filter/.NET/Filter/Filter/InputTemplate.xlsx rename to Editing Excel cells/Filter/.NET/Filter/Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Filter/.NET/Filter/Filter/Filter.csproj b/Editing Excel cells/Filter/.NET/Filter/Filter/Filter.csproj index 26fb8c24..d28f6e66 100644 --- a/Editing Excel cells/Filter/.NET/Filter/Filter/Filter.csproj +++ b/Editing Excel cells/Filter/.NET/Filter/Filter/Filter.csproj @@ -12,6 +12,9 @@ Always + + + Always diff --git a/Editing Excel cells/Filter/.NET/Filter/Filter/Program.cs b/Editing Excel cells/Filter/.NET/Filter/Filter/Program.cs index 44a3530e..ec7d1abe 100644 --- a/Editing Excel cells/Filter/.NET/Filter/Filter/Program.cs +++ b/Editing Excel cells/Filter/.NET/Filter/Filter/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Find/.NET/Find/Find/Program.cs b/Editing Excel cells/Find/.NET/Find/Find/Program.cs index 52aa851e..0eaa5e15 100644 --- a/Editing Excel cells/Find/.NET/Find/Find/Program.cs +++ b/Editing Excel cells/Find/.NET/Find/Find/Program.cs @@ -1,4 +1,5 @@ using Syncfusion.XlsIO; +using System.IO; namespace Find { @@ -36,7 +37,7 @@ public static void Main(string[] args) IRange[] result7 = worksheet.FindAll("5", ExcelFindType.Text, ExcelFindOptions.MatchEntireCellContent); //Saving the workbook as stream - FileStream stream = new FileStream("Find.xlsx", FileMode.Create, FileAccess.ReadWrite); + FileStream stream = new FileStream(Path.GetFullPath(@"Output/Find.xlsx"), FileMode.Create, FileAccess.ReadWrite); workbook.SaveAs(stream); stream.Dispose(); } diff --git a/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/InputTemplate.xlsx b/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/InputTemplate.xlsx rename to Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Font Color Filter.csproj b/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Font Color Filter.csproj index 1ece09c6..966cd470 100644 --- a/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Font Color Filter.csproj +++ b/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Font Color Filter.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Program.cs b/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Program.cs index 46be54c0..d98b54e9 100644 --- a/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Program.cs +++ b/Editing Excel cells/Font Color Filter/.NET/Font Color Filter/Font Color Filter/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/InputTemplate.xlsx b/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/InputTemplate.xlsx rename to Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Icon Filter.csproj b/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Icon Filter.csproj index 0cb7712a..d0907b6f 100644 --- a/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Icon Filter.csproj +++ b/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Icon Filter.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Program.cs b/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Program.cs index 751b9583..a9394a9f 100644 --- a/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Program.cs +++ b/Editing Excel cells/Icon Filter/.NET/Icon Filter/Icon Filter/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/InputTemplate.xlsx b/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/InputTemplate.xlsx rename to Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Modify Hyperlink.csproj b/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Modify Hyperlink.csproj index d81e644c..e6fe6879 100644 --- a/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Modify Hyperlink.csproj +++ b/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Modify Hyperlink.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Program.cs b/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Program.cs index 2ff1e283..048aa18d 100644 --- a/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Program.cs +++ b/Editing Excel cells/Modify Hyperlink/.NET/Modify Hyperlink/Modify Hyperlink/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/InputTemplate.xlsx b/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/InputTemplate.xlsx rename to Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Modify Shape Hyperlink.csproj b/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Modify Shape Hyperlink.csproj index 1658b5b1..fc82e441 100644 --- a/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Modify Shape Hyperlink.csproj +++ b/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Modify Shape Hyperlink.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Program.cs b/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Program.cs index 00b7ec07..cd8d247a 100644 --- a/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Program.cs +++ b/Editing Excel cells/Modify Shape Hyperlink/.NET/Modify Shape Hyperlink/Modify Shape Hyperlink/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Move Range/.NET/Move Range/Move Range/InputTemplate.xlsx b/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Move Range/.NET/Move Range/Move Range/InputTemplate.xlsx rename to Editing Excel cells/Move Range/.NET/Move Range/Move Range/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Move Range.csproj b/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Move Range.csproj index 20c4f980..7fd2bd73 100644 --- a/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Move Range.csproj +++ b/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Move Range.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Program.cs b/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Program.cs index d680ad45..4f901d6b 100644 --- a/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Program.cs +++ b/Editing Excel cells/Move Range/.NET/Move Range/Move Range/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/InputTemplate.xlsx b/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/InputTemplate.xlsx rename to Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Paste As Link.csproj b/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Paste As Link.csproj index 976ac3a4..c33f050b 100644 --- a/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Paste As Link.csproj +++ b/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Paste As Link.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Program.cs b/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Program.cs index fbe155d3..7d89e116 100644 --- a/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Program.cs +++ b/Editing Excel cells/Paste As Link/.NET/Paste As Link/Paste As Link/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/InputTemplate.xlsx b/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/InputTemplate.xlsx rename to Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Output/.gitkeep b/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Precedent and Dependent Cells.csproj b/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Precedent and Dependent Cells.csproj index e2ad702f..379131aa 100644 --- a/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Precedent and Dependent Cells.csproj +++ b/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Precedent and Dependent Cells.csproj @@ -8,6 +8,12 @@ + + Always + + + Always + diff --git a/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Program.cs b/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Program.cs index 6f080162..71f98bf1 100644 --- a/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Program.cs +++ b/Editing Excel cells/Precedent and Dependent Cells/.NET/Precedent and Dependent Cells/Precedent and Dependent Cells/Program.cs @@ -12,7 +12,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/InputTemplate.xlsx b/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/InputTemplate.xlsx rename to Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Program.cs b/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Program.cs index 3f21bbcf..d1d5089c 100644 --- a/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Program.cs +++ b/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Remove Hyperlink.csproj b/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Remove Hyperlink.csproj index 773fb4d9..b64fb864 100644 --- a/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Remove Hyperlink.csproj +++ b/Editing Excel cells/Remove Hyperlink/.NET/Remove Hyperlink/Remove Hyperlink/Remove Hyperlink.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/InputTemplate.xlsx b/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/InputTemplate.xlsx rename to Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Program.cs b/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Program.cs index d9b47c77..d6521c45 100644 --- a/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Program.cs +++ b/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath("Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Remove Shape Hyperlink.csproj b/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Remove Shape Hyperlink.csproj index e8ee1fde..5eb530e9 100644 --- a/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Remove Shape Hyperlink.csproj +++ b/Editing Excel cells/Remove Shape Hyperlink/.NET/Remove Shape Hyperlink/Remove Shape Hyperlink/Remove Shape Hyperlink.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Replace/.NET/Replace/Replace/Program.cs b/Editing Excel cells/Replace/.NET/Replace/Replace/Program.cs index dfab003d..531f0cd0 100644 --- a/Editing Excel cells/Replace/.NET/Replace/Replace/Program.cs +++ b/Editing Excel cells/Replace/.NET/Replace/Replace/Program.cs @@ -1,4 +1,5 @@ using Syncfusion.XlsIO; +using System.IO; namespace Replace { @@ -30,7 +31,7 @@ public static void Main(string[] args) worksheet.Replace("Central", new string[] { "Central", "East" }, true); //Saving the workbook as stream - FileStream stream = new FileStream("Replace.xlsx", FileMode.Create, FileAccess.ReadWrite); + FileStream stream = new FileStream(Path.GetFullPath("Output/Replace.xlsx"), FileMode.Create, FileAccess.ReadWrite); workbook.Version = ExcelVersion.Xlsx; workbook.SaveAs(stream); stream.Dispose(); diff --git a/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Image.png b/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Data/Image.png similarity index 100% rename from Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Image.png rename to Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Data/Image.png diff --git a/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Program.cs b/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Program.cs index d7c3e9fb..6b25f1ef 100644 --- a/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Program.cs +++ b/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Program.cs @@ -24,7 +24,7 @@ static void Main(string[] args) hyperlink = worksheet.HyperLinks.Add(autoShape, ExcelHyperLinkType.Url, "mailto:Username@syncfusion.com", "Send Mail"); //Adding hyperlink to picture - IPictureShape picture = worksheet.Pictures.AddPictureAsLink(5, 5, 10, 7, "../../../Image.png"); + IPictureShape picture = worksheet.Pictures.AddPictureAsLink(5, 5, 10, 7, Path.GetFullPath(@"Data/Image.png")); hyperlink = worksheet.HyperLinks.Add(picture); hyperlink.Type = ExcelHyperLinkType.Unc; hyperlink.Address = "C://Documents and Settings"; diff --git a/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Shape Hyperlink.csproj b/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Shape Hyperlink.csproj index 7eeacbad..d0fd4aa7 100644 --- a/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Shape Hyperlink.csproj +++ b/Editing Excel cells/Shape Hyperlink/.NET/Shape Hyperlink/Shape Hyperlink/Shape Hyperlink.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/InputTemplate.xlsx b/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/InputTemplate.xlsx rename to Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Program.cs b/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Program.cs index 5d1b6bea..9f4ae1fc 100644 --- a/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Program.cs +++ b/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Sort On Cell Color.csproj b/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Sort On Cell Color.csproj index 67ae88a1..122d53e2 100644 --- a/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Sort On Cell Color.csproj +++ b/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Sort On Cell Color.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/InputTemplate.xlsx b/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/InputTemplate.xlsx rename to Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Program.cs b/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Program.cs index 4c82d3e9..77d76ff9 100644 --- a/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Program.cs +++ b/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Sort On Cell Values.csproj b/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Sort On Cell Values.csproj index d22ce6f5..64ffdcf1 100644 --- a/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Sort On Cell Values.csproj +++ b/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Sort On Cell Values.csproj @@ -13,6 +13,9 @@ Always + + + Always diff --git a/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/InputTemplate.xlsx b/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Data/InputTemplate.xlsx similarity index 100% rename from Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/InputTemplate.xlsx rename to Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Data/InputTemplate.xlsx diff --git a/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Program.cs b/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Program.cs index 6b33e76d..9a7eae04 100644 --- a/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Program.cs +++ b/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream inputStream = new FileStream(Path.GetFullPath("Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(inputStream); IWorksheet worksheet = workbook.Worksheets[0]; diff --git a/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Sort on Font Color.csproj b/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Sort on Font Color.csproj index d6c266bd..8285df69 100644 --- a/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Sort on Font Color.csproj +++ b/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Sort on Font Color.csproj @@ -13,6 +13,9 @@ Always + + + Always