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 7eea359f..16467866 100644 --- a/Editing Excel cells/Filter/.NET/Filter/Filter/Filter.csproj +++ b/Editing Excel cells/Filter/.NET/Filter/Filter/Filter.csproj @@ -7,6 +7,14 @@ + + Always + + + Always + + + diff --git a/Editing Excel cells/Filter/.NET/Filter/Filter/Output/.gitkeep b/Editing Excel cells/Filter/.NET/Filter/Filter/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Editing Excel cells/Filter/.NET/Filter/Filter/Output/Filter.xlsx b/Editing Excel cells/Filter/.NET/Filter/Filter/Output/Filter.xlsx new file mode 100644 index 00000000..e2270d29 Binary files /dev/null and b/Editing Excel cells/Filter/.NET/Filter/Filter/Output/Filter.xlsx differ diff --git a/Editing Excel cells/Filter/.NET/Filter/Filter/Program.cs b/Editing Excel cells/Filter/.NET/Filter/Filter/Program.cs index 69bd29cd..d344264c 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]; @@ -32,7 +32,7 @@ static void Main(string[] args) #region Save //Saving the workbook - FileStream outputStream = new FileStream("Filter.xlsx", FileMode.Create, FileAccess.Write); + FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Filter.xlsx"), FileMode.Create, FileAccess.Write); workbook.SaveAs(outputStream); #endregion @@ -40,12 +40,6 @@ static void Main(string[] args) outputStream.Dispose(); inputStream.Dispose(); - System.Diagnostics.Process process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo("Filter.xlsx") - { - UseShellExecute = true - }; - process.Start(); } } } diff --git a/Editing Excel cells/Find/.NET/Find/Find/Find.csproj b/Editing Excel cells/Find/.NET/Find/Find/Find.csproj index d3bc7ac6..415b8e31 100644 --- a/Editing Excel cells/Find/.NET/Find/Find/Find.csproj +++ b/Editing Excel cells/Find/.NET/Find/Find/Find.csproj @@ -9,6 +9,12 @@ + + Always + + + Always + diff --git a/Editing Excel cells/Find/.NET/Find/Find/Output/.gitkeep b/Editing Excel cells/Find/.NET/Find/Find/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Editing Excel cells/Find/.NET/Find/Find/Program.cs b/Editing Excel cells/Find/.NET/Find/Find/Program.cs index 948bcb01..2d631aa5 100644 --- a/Editing Excel cells/Find/.NET/Find/Find/Program.cs +++ b/Editing Excel cells/Find/.NET/Find/Find/Program.cs @@ -10,7 +10,7 @@ public static void Main(string[] args) { IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Xlsx; - FileStream fileStream = new FileStream("../../../Data/InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + FileStream fileStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read); IWorkbook workbook = application.Workbooks.Open(fileStream); IWorksheet worksheet = workbook.Worksheets[0]; @@ -36,16 +36,10 @@ 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(); - System.Diagnostics.Process process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo("Find.xlsx") - { - UseShellExecute = true - }; - process.Start(); } } } diff --git a/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Hyperlinks.csproj b/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Hyperlinks.csproj index 7eea359f..23d5d3c8 100644 --- a/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Hyperlinks.csproj +++ b/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Hyperlinks.csproj @@ -7,6 +7,9 @@ + + Always + diff --git a/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Output/.gitkeep b/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Program.cs b/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Program.cs index 9c34c57f..767040f5 100644 --- a/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Program.cs +++ b/Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Program.cs @@ -51,19 +51,13 @@ static void Main(string[] args) #region Save //Saving the workbook - FileStream outputStream = new FileStream("Hyperlinks.xlsx", FileMode.Create, FileAccess.Write); + FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Hyperlinks.xlsx"), FileMode.Create, FileAccess.Write); workbook.SaveAs(outputStream); #endregion //Dispose streams outputStream.Dispose(); - System.Diagnostics.Process process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo("Hyperlinks.xlsx") - { - UseShellExecute = true - }; - process.Start(); } } } 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/Output/.gitkeep b/Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Output/.gitkeep new file mode 100644 index 00000000..e69de29b 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 4d1c74e1..00f3aaf5 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]; @@ -49,20 +49,13 @@ static void Main(string[] args) #region Save //Saving the workbook - FileStream outputStream = new FileStream("SortOnCellColor.xlsx", FileMode.Create, FileAccess.Write); + FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/SortOnCellColor.xlsx"), FileMode.Create, FileAccess.Write); workbook.SaveAs(outputStream); #endregion //Dispose streams outputStream.Dispose(); inputStream.Dispose(); - - System.Diagnostics.Process process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo("SortOnCellColor.xlsx") - { - UseShellExecute = true - }; - process.Start(); } } } 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 b6985bc9..08825aaa 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 @@ -8,6 +8,12 @@ + + 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/Output/.gitkeep b/Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Output/.gitkeep new file mode 100644 index 00000000..e69de29b 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 23cfe5c5..c28e027f 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]; @@ -43,7 +43,7 @@ static void Main(string[] args) #region Save //Saving the workbook - FileStream outputStream = new FileStream("SortOnValues.xlsx", FileMode.Create, FileAccess.Write); + FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/SortOnValues.xlsx"), FileMode.Create, FileAccess.Write); workbook.SaveAs(outputStream); #endregion @@ -51,12 +51,6 @@ static void Main(string[] args) outputStream.Dispose(); inputStream.Dispose(); - System.Diagnostics.Process process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo("SortOnValues.xlsx") - { - UseShellExecute = true - }; - process.Start(); } } } 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 9fdcded8..508734db 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 @@ -8,6 +8,12 @@ + + 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/Output/.gitkeep b/Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Output/.gitkeep new file mode 100644 index 00000000..e69de29b 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 05c41a43..efa005fa 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]; @@ -49,7 +49,7 @@ static void Main(string[] args) #region Save //Saving the workbook - FileStream outputStream = new FileStream("SortOnFontColor.xlsx", FileMode.Create, FileAccess.Write); + FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/SortOnFontColor.xlsx"), FileMode.Create, FileAccess.Write); workbook.SaveAs(outputStream); #endregion @@ -57,12 +57,6 @@ static void Main(string[] args) outputStream.Dispose(); inputStream.Dispose(); - System.Diagnostics.Process process = new System.Diagnostics.Process(); - process.StartInfo = new System.Diagnostics.ProcessStartInfo("SortOnFontColor.xlsx") - { - UseShellExecute = true - }; - process.Start(); } } } 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 1e9653e3..f5ff38c4 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 @@ -8,6 +8,12 @@ + + Always + + + Always +