From 94c1e104e536e49e1f270b2d9f18017a88e8bcd1 Mon Sep 17 00:00:00 2001 From: GowthamPonrajSF5414 Date: Fri, 23 Aug 2024 15:44:01 +0530 Subject: [PATCH] 902906: Playground integration changes --- .../Filter/Filter/{ => Data}/InputTemplate.xlsx | Bin .../Filter/.NET/Filter/Filter/Filter.csproj | 8 ++++++++ .../Filter/.NET/Filter/Filter/Output/.gitkeep | 0 .../Filter/.NET/Filter/Filter/Output/Filter.xlsx | Bin 0 -> 6126 bytes .../Filter/.NET/Filter/Filter/Program.cs | 10 ++-------- .../Find/.NET/Find/Find/Find.csproj | 6 ++++++ .../Find/.NET/Find/Find/Output/.gitkeep | 0 .../Find/.NET/Find/Find/Program.cs | 10 ++-------- .../.NET/Hyperlinks/Hyperlinks/Hyperlinks.csproj | 3 +++ .../.NET/Hyperlinks/Hyperlinks/Output/.gitkeep | 0 .../.NET/Hyperlinks/Hyperlinks/Program.cs | 8 +------- .../{ => Data}/InputTemplate.xlsx | Bin .../Sort On Cell Color/Output/.gitkeep | 0 .../Sort On Cell Color/Program.cs | 11 ++--------- .../Sort On Cell Color/Sort On Cell Color.csproj | 6 ++++++ .../{ => Data}/InputTemplate.xlsx | Bin .../Sort On Cell Values/Output/.gitkeep | 0 .../Sort On Cell Values/Program.cs | 10 ++-------- .../Sort On Cell Values.csproj | 6 ++++++ .../{ => Data}/InputTemplate.xlsx | Bin .../Sort on Font Color/Output/.gitkeep | 0 .../Sort on Font Color/Program.cs | 10 ++-------- .../Sort on Font Color/Sort on Font Color.csproj | 6 ++++++ 23 files changed, 46 insertions(+), 48 deletions(-) rename Editing Excel cells/Filter/.NET/Filter/Filter/{ => Data}/InputTemplate.xlsx (100%) create mode 100644 Editing Excel cells/Filter/.NET/Filter/Filter/Output/.gitkeep create mode 100644 Editing Excel cells/Filter/.NET/Filter/Filter/Output/Filter.xlsx create mode 100644 Editing Excel cells/Find/.NET/Find/Find/Output/.gitkeep create mode 100644 Editing Excel cells/Hyperlinks/.NET/Hyperlinks/Hyperlinks/Output/.gitkeep rename Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/{ => Data}/InputTemplate.xlsx (100%) create mode 100644 Editing Excel cells/Sort On Cell Color/.NET/Sort On Cell Color/Sort On Cell Color/Output/.gitkeep rename Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/{ => Data}/InputTemplate.xlsx (100%) create mode 100644 Editing Excel cells/Sort On Cell Values/.NET/Sort On Cell Values/Sort On Cell Values/Output/.gitkeep rename Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/{ => Data}/InputTemplate.xlsx (100%) create mode 100644 Editing Excel cells/Sort on Font Color/.NET/Sort on Font Color/Sort on Font Color/Output/.gitkeep 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 0000000000000000000000000000000000000000..e2270d29aeb20045abc1417bb3699e69749fcca6 GIT binary patch literal 6126 zcmZ{I1yoe)_ck@8fP|EE38FAa3rIIZ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w`u&Y{fe{rrZXRcNt6q~s0)i)9cw|R0Yx;2b z&xE--mo4r1P8+K3U0{w&Z*YQBMkn;#!Ty-Z;@rPCx09W~nw--{4j)wIkdbv$Nt(ak z|DrTf^FKqNX&}s*hJN!Ey{?A(zf;ZH(*p)|xe7wopbX&);7!1AdB|rcXX?W65fJIH z!uq4m2trPZ2k>#ENZ~Lx?D#mhXFE*aU?L`+IucjI6PpkYcZ*020zLBtbXhGq=tnv% zNQdQbZ>5vl8OG^iveq}zq$%i>3pLTc_}X~Sid*ulMPa7|RZr&v>neB|UpF7QA z0Iht=7IG#ctMj^*n+zUopD=^eS9&Xf+036DiD$N@{4Bp zuZ^q8)tK4~RhQt&NoGq%IEK(=y3PTZFOTE))uiF~qw9=}?lY~GX46~A<#3C*+CTDZ z>~&4TEMWJ!C%Ps}nUcOlX>rgVJ{`tzP(t&C42uwk=y_AREm2zY1c)^`H>=c@3{YU_mDwrB5}XEj~5 zpp@XA*3oYT_;|TeMM7S^Xmzn_F8BJm>!~cZDzAzQbwb~b+`F@pA$OkJ z7`dkrk}U744UFV3TRSu7t=F(jCw;~4oWCJyUk0y$NzA;|EB459nl_or&d1IiiBBam z#{kLBC76b$eS^aqs69VS$332T<1;u#01RP;*9Cu4^_t>2pXC)Lf6Ij*#&(~`pOfn4 zWIg?;#1345_{U&PpzRj5?G}{Vx|@CTf_6xM1xa96-tepQVPf6?Q(yk~!6j2l=-Y)j2k_^%uY%x{dy$bhXp~ T=*D|h(L@*>=*p(Pb#?cD=M;>V literal 0 HcmV?d00001 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 +