From 8a703a95403b5b9f9c5a80509a4a9dda31f2a9ff Mon Sep 17 00:00:00 2001 From: DharanitharanA <97955635+DharanitharanA@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:55:02 +0530 Subject: [PATCH 1/4] 908992-Added opening and saving PowerPoint presentation in Google Drive cloud storage samples --- .../Open-PowerPoint-document.sln | 25 ++++ .../Open-PowerPoint-document.csproj | 14 +++ .../Open-PowerPoint-document/Program.cs | 50 ++++++++ .../Save-PowerPoint-document.sln | 25 ++++ .../Save-PowerPoint-document/Data/Image.jpg | Bin 0 -> 21517 bytes .../Save-PowerPoint-document/Program.cs | 109 ++++++++++++++++++ .../Save-PowerPoint-document.csproj | 15 +++ 7 files changed, 238 insertions(+) create mode 100644 Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln create mode 100644 Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj create mode 100644 Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs create mode 100644 Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln create mode 100644 Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg create mode 100644 Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Program.cs create mode 100644 Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Save-PowerPoint-document.csproj diff --git a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln new file mode 100644 index 00000000..630a1814 --- /dev/null +++ b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34205.153 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Open-PowerPoint-document", "Open-PowerPoint-document\Open-PowerPoint-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} + EndGlobalSection +EndGlobal diff --git a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj new file mode 100644 index 00000000..3588f78e --- /dev/null +++ b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + Open_PowerPoint_document + enable + enable + + + + + + diff --git a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs new file mode 100644 index 00000000..820c44df --- /dev/null +++ b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs @@ -0,0 +1,50 @@ +using Google.Apis.Auth.OAuth2; +using Google.Apis.Drive.v3; +using Google.Apis.Services; +using Google.Apis.Util.Store; + +namespace Open_PowerPoint_document +{ + internal class Program + { + static void Main(string[] args) + { + UserCredential credential; + string[] Scopes = { DriveService.Scope.DriveReadonly }; + string ApplicationName = "YourAppName"; + // Step 1: Open Google Drive with credentials. + using (var cretendialStream = new FileStream("credentials.json", FileMode.Open, FileAccess.Read)) + { + string credPath = "token.json"; + credential = GoogleWebAuthorizationBroker.AuthorizeAsync( + GoogleClientSecrets.Load(cretendialStream).Secrets, + Scopes, + "user", + CancellationToken.None, + new FileDataStore(credPath, true)).Result; + } + + // Step 2: Create Drive API service + var service = new DriveService(new BaseClientService.Initializer() + { + HttpClientInitializer = credential, + ApplicationName = ApplicationName, + }); + + // Step 3: Specify the file ID of the PowerPoint presentation you want to open + string fileId = "YOUR_FILE_ID"; // Replace with the actual file ID YOUR_FILE_ID + + // Step 4: Download the PowerPoint presentation from Google Drive + var request = service.Files.Get(fileId); + var stream = new MemoryStream(); + request.Download(stream); + + // Step 5: Save the PowerPoint presentation locally + using (FileStream fileStream = new FileStream("Output.pptx", FileMode.Create, FileAccess.Write)) + { + stream.WriteTo(fileStream); + } + + } + } +} diff --git a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln new file mode 100644 index 00000000..318bd7b6 --- /dev/null +++ b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34205.153 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Save-PowerPoint-document", "Save-PowerPoint-document\Save-PowerPoint-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} + EndGlobalSection +EndGlobal diff --git a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg new file mode 100644 index 0000000000000000000000000000000000000000..62e1d53bbf96549e6cc00cba03b140f6d918762f GIT binary patch literal 21517 zcmbTdWmFtd(=Iv$2nj&~VQ>o`G|1qRkl^kP!DVol!Gi=1?hxFWAcMOGg4^IO!5MV$ z!~31{ooj#Yy}Nh)>AiQadRFzS>VB%~Y3^wa@K#n*MiPL6f&%#Vd;y*o0bc;9FJAm- zJ`c3#iT(;59Ssc~69ePrD=bVbtT&i%-eBY4zs1JE!+G=OE#X_dcLYEn5DS-xn2>-N zp8!bkpNF8JKA%BDe~pg*ngII^Ho^br@ze>xdxZi(*+E620ldINLB&IP>IF~%04V6s z+Wtr3|20rvJnQ%pi{%7bo}?6pI^RHF~*>A zBH#*)%Y8*FUfl&$oj9fAHgOJmjY&vEOhQV}z{vE0nFqwn$1foG<*S6Gl(dYjn!1Lj zmbQ+rshPQjrIodfi>sTvho_f!@b{3=u<#!d@d=4Z$tkI6>3R7Dg+;|BrDZj>b+Gz| z#-`@(p5DIxfj@&olT*_(v+%k3h4qcit?ixNe|!6gv-69~t83)V?SF8g08sxYtpAPd z|Aq_i8P^LmG*mQ<|KLJ-;qfe}cxdSFIbY&`R>3fKdPl<*_=-S0F1NbtH7&R5DbU1u z0+W!AXPqALA87xD?Ef9Gp#NXU{x`7y1J?oo3l-(rc&K;)F#wX&O!LQh6;M&BO|~j} zn^PYrK((Hv;8Uu~AWu0HUjJcca6n_lp=)yG(exno*a_K!6uh;>87&4H*onL6$qDoiXoJ$M%jC7ATd9nRmQXz$r&#`)IX=E zR@JYrb{7sQ@``RL)YF!#1XY&jN~*d`Weh`0@t3&jogyY{rcpPmD`vy2iWe8-eOdmU z;#3%9jIZ@F$>{IVwi>kADAjZ5NAzjXM*Ivl4sbG(EgPiNs+DhY@gtxFgB%LtjcgSX6F<4*VLP;8D?!066_GI zV8tQ3ClC}@YE5hr7&jfMa$(~ston&XO~s2LFcuv5VnIQ&2l8EaHHb`iTFjT(_@uUET}rVT}c~$NQ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zsfin=NSp*8EWWiNm&;KUoH^*#iw(&i>rN!-4O@och$3!#DXA>e^IccVW0TV~<+m>C zI^(FQEfLy9+;iw_W;jL*V+0NuRm4&(*~TJMw4I=E396rWdomW>dsNZ3+j1GU5^A;7 zh9p3egH4GM-pd$O19V2JrSn4Dq#j~)+&a@QuFHTWUB}c_b&dX2iNRCJ6&sZFI!zAv z?q4PGxbm!P&=pqd*#RFo^yyw(YN#e$?v0n7!o34QylL&&N$HG=Wkh7wgY85YWh^~1 zDjBq}(7*2`$nK+xzkR+Sl6jvfJy)$n+Lptx+<+U~n$VjVA7zglpUoRjB=@IWENW4s zc0-J9HE#3GXyqw7vB%xUD=J2nReZo1arcE~CR|aEs>1uwI+Amc!lbd87G&DzIr)L; zDocqx#v30X4xW`-({tPwWEoS+sOl(0oyEc}&X*6E7FGv>wa4la`Es_!WB~G5aa&qV zt%qrj1suqoUp8UEmd}5 zh$ItJa>hq-y;QJ2d#|Xf*B1*S{JXKZ~(YrnNS873+-&f11DD_eQK*d!4m4gFa3uW<06!(SHo%GLv> z_gt6wOQ5}{5sYk^_uc!MPGiT*VW$u z{{Ux^@OMg{T~6XF{c7xwGDz3tjYmaX{{TArQfPn#0a%)pJcC>jrx@$I3YhwpmnE!< z)=-Wse${?aT>Y$pTrO*V(YjYuZ4`4$-bRdT=~5M_<7%5V)TN=s_bJS^fvc~`z}H7R z3c=M>IvU2MM0HV(%pEomw;3D^*JWZ3!CbzdANoNa_14)Y6bkC5{nTMw;$_9o(Mc!W zr&DI(Yge((w<|R!hi5;6MMOj*v+6rE}&JZChn$2A*g z6`>6f%b!}KbjQmzZeOiu-bezPrU>M9-P^OC^*)CwRsy2dK4a@vG&p`>TC$XscRKlR z6Rfw8upYH~Jn>bnfK?b3dOw>LjH{zBW=xdXIPX%eL2!OrpKKn?p?M| + + + Exe + net8.0 + Save_PowerPoint_document + enable + enable + + + + + + + From e202827a6f302a6e70bd3b9ad71130946480d456 Mon Sep 17 00:00:00 2001 From: DharanitharanA <97955635+DharanitharanA@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:57:55 +0530 Subject: [PATCH 2/4] 894415-Added opening and saving PowerPoint presentation in Google Drive cloud storage samples --- .../Open-PowerPoint-document.sln | 25 ++++ .../Open-PowerPoint-document.csproj | 14 +++ .../Open-PowerPoint-document/Program.cs | 50 ++++++++ .../Save-PowerPoint-document.sln | 25 ++++ .../Save-PowerPoint-document/Data/Image.jpg | Bin 0 -> 21517 bytes .../Save-PowerPoint-document/Program.cs | 109 ++++++++++++++++++ .../Save-PowerPoint-document.csproj | 15 +++ 7 files changed, 238 insertions(+) create mode 100644 Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln create mode 100644 Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj create mode 100644 Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs create mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln create mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg create mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Program.cs create mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Save-PowerPoint-document.csproj diff --git a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln new file mode 100644 index 00000000..630a1814 --- /dev/null +++ b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34205.153 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Open-PowerPoint-document", "Open-PowerPoint-document\Open-PowerPoint-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} + EndGlobalSection +EndGlobal diff --git a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj new file mode 100644 index 00000000..3588f78e --- /dev/null +++ b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + Open_PowerPoint_document + enable + enable + + + + + + diff --git a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs new file mode 100644 index 00000000..820c44df --- /dev/null +++ b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs @@ -0,0 +1,50 @@ +using Google.Apis.Auth.OAuth2; +using Google.Apis.Drive.v3; +using Google.Apis.Services; +using Google.Apis.Util.Store; + +namespace Open_PowerPoint_document +{ + internal class Program + { + static void Main(string[] args) + { + UserCredential credential; + string[] Scopes = { DriveService.Scope.DriveReadonly }; + string ApplicationName = "YourAppName"; + // Step 1: Open Google Drive with credentials. + using (var cretendialStream = new FileStream("credentials.json", FileMode.Open, FileAccess.Read)) + { + string credPath = "token.json"; + credential = GoogleWebAuthorizationBroker.AuthorizeAsync( + GoogleClientSecrets.Load(cretendialStream).Secrets, + Scopes, + "user", + CancellationToken.None, + new FileDataStore(credPath, true)).Result; + } + + // Step 2: Create Drive API service + var service = new DriveService(new BaseClientService.Initializer() + { + HttpClientInitializer = credential, + ApplicationName = ApplicationName, + }); + + // Step 3: Specify the file ID of the PowerPoint presentation you want to open + string fileId = "YOUR_FILE_ID"; // Replace with the actual file ID YOUR_FILE_ID + + // Step 4: Download the PowerPoint presentation from Google Drive + var request = service.Files.Get(fileId); + var stream = new MemoryStream(); + request.Download(stream); + + // Step 5: Save the PowerPoint presentation locally + using (FileStream fileStream = new FileStream("Output.pptx", FileMode.Create, FileAccess.Write)) + { + stream.WriteTo(fileStream); + } + + } + } +} diff --git a/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln b/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln new file mode 100644 index 00000000..318bd7b6 --- /dev/null +++ b/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34205.153 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Save-PowerPoint-document", "Save-PowerPoint-document\Save-PowerPoint-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} + EndGlobalSection +EndGlobal diff --git a/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg b/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg new file mode 100644 index 0000000000000000000000000000000000000000..62e1d53bbf96549e6cc00cba03b140f6d918762f GIT binary patch literal 21517 zcmbTdWmFtd(=Iv$2nj&~VQ>o`G|1qRkl^kP!DVol!Gi=1?hxFWAcMOGg4^IO!5MV$ z!~31{ooj#Yy}Nh)>AiQadRFzS>VB%~Y3^wa@K#n*MiPL6f&%#Vd;y*o0bc;9FJAm- zJ`c3#iT(;59Ssc~69ePrD=bVbtT&i%-eBY4zs1JE!+G=OE#X_dcLYEn5DS-xn2>-N zp8!bkpNF8JKA%BDe~pg*ngII^Ho^br@ze>xdxZi(*+E620ldINLB&IP>IF~%04V6s z+Wtr3|20rvJnQ%pi{%7bo}?6pI^RHF~*>A zBH#*)%Y8*FUfl&$oj9fAHgOJmjY&vEOhQV}z{vE0nFqwn$1foG<*S6Gl(dYjn!1Lj zmbQ+rshPQjrIodfi>sTvho_f!@b{3=u<#!d@d=4Z$tkI6>3R7Dg+;|BrDZj>b+Gz| z#-`@(p5DIxfj@&olT*_(v+%k3h4qcit?ixNe|!6gv-69~t83)V?SF8g08sxYtpAPd z|Aq_i8P^LmG*mQ<|KLJ-;qfe}cxd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jYmaX{{TArQfPn#0a%)pJcC>jrx@$I3YhwpmnE!< z)=-Wse${?aT>Y$pTrO*V(YjYuZ4`4$-bRdT=~5M_<7%5V)TN=s_bJS^fvc~`z}H7R z3c=M>IvU2MM0HV(%pEomw;3D^*JWZ3!CbzdANoNa_14)Y6bkC5{nTMw;$_9o(Mc!W zr&DI(Yge((w<|R!hi5;6MMOj*v+6rE}&JZChn$2A*g z6`>6f%b!}KbjQmzZeOiu-bezPrU>M9-P^OC^*)CwRsy2dK4a@vG&p`>TC$XscRKlR z6Rfw8upYH~Jn>bnfK?b3dOw>LjH{zBW=xdXIPX%eL2!OrpKKn?p?M| + + + Exe + net8.0 + Save_PowerPoint_document + enable + enable + + + + + + + From f5aa797d2dd8f6e8ada8c28079ace016749f8f05 Mon Sep 17 00:00:00 2001 From: DharanitharanA <97955635+DharanitharanA@users.noreply.github.com> Date: Wed, 18 Sep 2024 18:35:00 +0530 Subject: [PATCH 3/4] 894415-Removed unwanted samples --- .../Open-PowerPoint-document.sln | 25 ---- .../Open-PowerPoint-document.csproj | 14 --- .../Open-PowerPoint-document/Program.cs | 50 -------- .../Save-PowerPoint-document.sln | 25 ---- .../Save-PowerPoint-document/Data/Image.jpg | Bin 21517 -> 0 bytes .../Save-PowerPoint-document/Program.cs | 109 ------------------ .../Save-PowerPoint-document.csproj | 15 --- 7 files changed, 238 deletions(-) delete mode 100644 Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln delete mode 100644 Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj delete mode 100644 Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs delete mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln delete mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg delete mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Program.cs delete mode 100644 Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Save-PowerPoint-document.csproj diff --git a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln deleted file mode 100644 index 630a1814..00000000 --- a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34205.153 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Open-PowerPoint-document", "Open-PowerPoint-document\Open-PowerPoint-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} - EndGlobalSection -EndGlobal diff --git a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj deleted file mode 100644 index 3588f78e..00000000 --- a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Open-PowerPoint-document.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - net8.0 - Open_PowerPoint_document - enable - enable - - - - - - diff --git a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs b/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs deleted file mode 100644 index 820c44df..00000000 --- a/Getting-started/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Google.Apis.Auth.OAuth2; -using Google.Apis.Drive.v3; -using Google.Apis.Services; -using Google.Apis.Util.Store; - -namespace Open_PowerPoint_document -{ - internal class Program - { - static void Main(string[] args) - { - UserCredential credential; - string[] Scopes = { DriveService.Scope.DriveReadonly }; - string ApplicationName = "YourAppName"; - // Step 1: Open Google Drive with credentials. - using (var cretendialStream = new FileStream("credentials.json", FileMode.Open, FileAccess.Read)) - { - string credPath = "token.json"; - credential = GoogleWebAuthorizationBroker.AuthorizeAsync( - GoogleClientSecrets.Load(cretendialStream).Secrets, - Scopes, - "user", - CancellationToken.None, - new FileDataStore(credPath, true)).Result; - } - - // Step 2: Create Drive API service - var service = new DriveService(new BaseClientService.Initializer() - { - HttpClientInitializer = credential, - ApplicationName = ApplicationName, - }); - - // Step 3: Specify the file ID of the PowerPoint presentation you want to open - string fileId = "YOUR_FILE_ID"; // Replace with the actual file ID YOUR_FILE_ID - - // Step 4: Download the PowerPoint presentation from Google Drive - var request = service.Files.Get(fileId); - var stream = new MemoryStream(); - request.Download(stream); - - // Step 5: Save the PowerPoint presentation locally - using (FileStream fileStream = new FileStream("Output.pptx", FileMode.Create, FileAccess.Write)) - { - stream.WriteTo(fileStream); - } - - } - } -} diff --git a/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln b/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln deleted file mode 100644 index 318bd7b6..00000000 --- a/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34205.153 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Save-PowerPoint-document", "Save-PowerPoint-document\Save-PowerPoint-document.csproj", "{93F4EA0D-FA3D-47FB-8DFC-204C609E856F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {93F4EA0D-FA3D-47FB-8DFC-204C609E856F}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {024A6C01-116E-4483-9B82-338F6A791749} - EndGlobalSection -EndGlobal diff --git a/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg b/Getting-started/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Data/Image.jpg deleted file mode 100644 index 62e1d53bbf96549e6cc00cba03b140f6d918762f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21517 zcmbTdWmFtd(=Iv$2nj&~VQ>o`G|1qRkl^kP!DVol!Gi=1?hxFWAcMOGg4^IO!5MV$ z!~31{ooj#Yy}Nh)>AiQadRFzS>VB%~Y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iNRCJ6&sZFI!zAv z?q4PGxbm!P&=pqd*#RFo^yyw(YN#e$?v0n7!o34QylL&&N$HG=Wkh7wgY85YWh^~1 zDjBq}(7*2`$nK+xzkR+Sl6jvfJy)$n+Lptx+<+U~n$VjVA7zglpUoRjB=@IWENW4s zc0-J9HE#3GXyqw7vB%xUD=J2nReZo1arcE~CR|aEs>1uwI+Amc!lbd87G&DzIr)L; zDocqx#v30X4xW`-({tPwWEoS+sOl(0oyEc}&X*6E7FGv>wa4la`Es_!WB~G5aa&qV zt%qrj1suqoUp8UEmd}5 zh$ItJa>hq-y;QJ2d#|Xf*B1*S{JXKZ~(YrnNS873+-&f11DD_eQK*d!4m4gFa3uW<06!(SHo%GLv> z_gt6wOQ5}{5sYk^_uc!MPGiT*VW$u z{{Ux^@OMg{T~6XF{c7xwGDz3tjYmaX{{TArQfPn#0a%)pJcC>jrx@$I3YhwpmnE!< z)=-Wse${?aT>Y$pTrO*V(YjYuZ4`4$-bRdT=~5M_<7%5V)TN=s_bJS^fvc~`z}H7R z3c=M>IvU2MM0HV(%pEomw;3D^*JWZ3!CbzdANoNa_14)Y6bkC5{nTMw;$_9o(Mc!W zr&DI(Yge((w<|R!hi5;6MMOj*v+6rE}&JZChn$2A*g z6`>6f%b!}KbjQmzZeOiu-bezPrU>M9-P^OC^*)CwRsy2dK4a@vG&p`>TC$XscRKlR z6Rfw8upYH~Jn>bnfK?b3dOw>LjH{zBW=xdXIPX%eL2!OrpKKn?p?M| - - - Exe - net8.0 - Save_PowerPoint_document - enable - enable - - - - - - - From 02d01754fba5ec179450aaf3a2fd0c057bc8ed65 Mon Sep 17 00:00:00 2001 From: DharanitharanA <97955635+DharanitharanA@users.noreply.github.com> Date: Mon, 23 Sep 2024 08:42:13 +0530 Subject: [PATCH 4/4] 894415-Handled dispose and added XML comments for Google Drive cloud samples --- .../Open-PowerPoint-document/Program.cs | 13 ++--- .../Save-PowerPoint-document/Program.cs | 53 +++++++++---------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs index 820c44df..40397c7f 100644 --- a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs +++ b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Open-PowerPoint-document/Open-PowerPoint-document/Program.cs @@ -24,27 +24,28 @@ static void Main(string[] args) new FileDataStore(credPath, true)).Result; } - // Step 2: Create Drive API service + // Step 2: Create Drive API service. var service = new DriveService(new BaseClientService.Initializer() { HttpClientInitializer = credential, ApplicationName = ApplicationName, }); - // Step 3: Specify the file ID of the PowerPoint presentation you want to open - string fileId = "YOUR_FILE_ID"; // Replace with the actual file ID YOUR_FILE_ID + // Step 3: Specify the file ID of the PowerPoint presentation you want to open. + string fileId = "YOUR_FILE_ID"; // Replace with the actual file ID YOUR_FILE_ID. - // Step 4: Download the PowerPoint presentation from Google Drive + // Step 4: Download the PowerPoint presentation from Google Drive. var request = service.Files.Get(fileId); var stream = new MemoryStream(); request.Download(stream); - // Step 5: Save the PowerPoint presentation locally + // Step 5: Save the PowerPoint presentation locally. using (FileStream fileStream = new FileStream("Output.pptx", FileMode.Create, FileAccess.Write)) { stream.WriteTo(fileStream); } - + //Dispose the memory stream. + stream.Dispose(); } } } diff --git a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Program.cs b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Program.cs index 6f9375ab..07c52ead 100644 --- a/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Program.cs +++ b/Read-and-save-PowerPoint-presentation/Open-and-save-PowerPoint/Google-Drive/Save-PowerPoint-document/Save-PowerPoint-document/Program.cs @@ -11,61 +11,56 @@ internal class Program { static void Main(string[] args) { - //Create a new instance of PowerPoint Presentation file + //Create a new instance of PowerPoint Presentation file. IPresentation pptxDocument = Presentation.Create(); - //Add a new slide to file and apply background color + //Add a new slide to file and apply background color. ISlide slide = pptxDocument.Slides.Add(SlideLayoutType.TitleOnly); - - //Specify the fill type and fill color for the slide background + //Specify the fill type and fill color for the slide background. slide.Background.Fill.FillType = FillType.Solid; slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(232, 241, 229); - //Add title content to the slide by accessing the title placeholder of the TitleOnly layout-slide + //Add title content to the slide by accessing the title placeholder of the TitleOnly layout-slide. IShape titleShape = slide.Shapes[0] as IShape; titleShape.TextBody.AddParagraph("Company History").HorizontalAlignment = HorizontalAlignmentType.Center; - //Add description content to the slide by adding a new TextBox + //Add description content to the slide by adding a new TextBox. IShape descriptionShape = slide.AddTextBox(53.22, 141.73, 874.19, 77.70); descriptionShape.TextBody.Text = "IMN Solutions PVT LTD is the software company, established in 1987, by George Milton. The company has been listed as the trusted partner for many high-profile organizations since 1988 and got awards for quality products from reputed organizations."; - //Add bullet points to the slide + //Add bullet points to the slide. IShape bulletPointsShape = slide.AddTextBox(53.22, 270, 437.90, 116.32); - //Add a paragraph for a bullet point + //Add a paragraph for a bullet point. IParagraph firstPara = bulletPointsShape.TextBody.AddParagraph("The company acquired the MCY corporation for 20 billion dollars and became the top revenue maker for the year 2015."); - - //Format how the bullets should be displayed + //Format how the bullets should be displayed. firstPara.ListFormat.Type = ListType.Bulleted; firstPara.LeftIndent = 35; firstPara.FirstLineIndent = -35; - //Add another paragraph for the next bullet point + //Add another paragraph for the next bullet point. IParagraph secondPara = bulletPointsShape.TextBody.AddParagraph("The company is participating in top open source projects in automation industry."); - - //Format how the bullets should be displayed + //Format how the bullets should be displayed. secondPara.ListFormat.Type = ListType.Bulleted; secondPara.LeftIndent = 35; secondPara.FirstLineIndent = -35; - //Gets a picture as stream - FileStream pictureStream = new FileStream(Path.GetFullPath("../../../Output/Image.jpg"), FileMode.Open); - + //Gets a picture as stream. + FileStream pictureStream = new FileStream(Path.GetFullPath("../../../Data/Image.jpg"), FileMode.Open); //Adds the picture to a slide by specifying its size and position. slide.Shapes.AddPicture(pictureStream, 499.79, 238.59, 364.54, 192.16); - //Add an auto-shape to the slide + //Add an auto-shape to the slide. IShape stampShape = slide.Shapes.AddShape(AutoShapeType.Explosion1, 48.93, 430.71, 104.13, 80.54); - - //Format the auto-shape color by setting the fill type and text + //Format the auto-shape color by setting the fill type and text. stampShape.Fill.FillType = FillType.None; stampShape.TextBody.AddParagraph("IMN").HorizontalAlignment = HorizontalAlignmentType.Center; - //Saves the PowerPoint to MemoryStream + //Saves the PowerPoint to MemoryStream. MemoryStream stream = new MemoryStream(); pptxDocument.Save(stream); - // Load Google Drive API credentials from a file + // Load Google Drive API credentials from a file. UserCredential credential; string[] Scopes = { DriveService.Scope.Drive }; string ApplicationName = "YourAppName"; @@ -73,7 +68,7 @@ static void Main(string[] args) using (var stream1 = new FileStream("credentials.json", FileMode.Open, FileAccess.Read))//Replace with your actual credentials.json { string credPath = "token.json"; - // Authorize the Google Drive API access + // Authorize the Google Drive API access. credential = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream1).Secrets, Scopes, @@ -81,29 +76,31 @@ static void Main(string[] args) CancellationToken.None, new FileDataStore(credPath, true)).Result; } - // Create a new instance of Google Drive service + // Create a new instance of Google Drive service. var service = new DriveService(new BaseClientService.Initializer() { HttpClientInitializer = credential, ApplicationName = ApplicationName, }); - // Create metadata for the file to be uploaded + // Create metadata for the file to be uploaded. var fileMetadata = new File() { - Name = "Output.pptx", // Name of the file in Google Drive + Name = "Output.pptx", // Name of the file in Google Drive. MimeType = "application/powerpoint", }; FilesResource.CreateMediaUpload request; - // Create a memory stream from the PowerPoint presentation. using (var fs = new MemoryStream(stream.ToArray())) { - // Create an upload request for Google Drive + // Create an upload request for Google Drive. request = service.Files.Create(fileMetadata, fs, "application/powerpoint"); - // Upload the file + // Upload the file. request.Upload(); } + //Dispose the memory stream. + stream.Dispose(); + pptxDocument.Close(); } } }