From bc26ee7188e0f61efa4f68f5dc3fabd582569909 Mon Sep 17 00:00:00 2001 From: MOHAN CHANDRAN <93247949+Mohan2401@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:29:39 +0530 Subject: [PATCH] Excel to Thumbnail image conversion sample --- .../Excel To Thumbnail Image.sln | 25 ++++++++++ .../Data/InputTemplate.xlsx | Bin 0 -> 12406 bytes .../Excel To Thumbnail Image.csproj | 14 ++++++ .../Excel To Thumbnail Image/Program.cs | 44 ++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image.sln create mode 100644 Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Data/InputTemplate.xlsx create mode 100644 Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Excel To Thumbnail Image.csproj create mode 100644 Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Program.cs diff --git a/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image.sln b/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image.sln new file mode 100644 index 00000000..f33344ff --- /dev/null +++ b/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33513.286 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Excel To Thumbnail Image", "Excel To Thumbnail Image\Excel To Thumbnail Image.csproj", "{40357E15-2E82-4E6C-9501-6BE095EEB722}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {40357E15-2E82-4E6C-9501-6BE095EEB722}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {40357E15-2E82-4E6C-9501-6BE095EEB722}.Debug|Any CPU.Build.0 = Debug|Any CPU + {40357E15-2E82-4E6C-9501-6BE095EEB722}.Release|Any CPU.ActiveCfg = Release|Any CPU + {40357E15-2E82-4E6C-9501-6BE095EEB722}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {38AB5DF7-3343-4550-BD1E-5F293A0C913D} + EndGlobalSection +EndGlobal diff --git a/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Data/InputTemplate.xlsx b/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..2d69bf2cbf734e82f608aa4a0b0829d18e116263 GIT binary patch literal 12406 zcmeHtWpErz(ybUQW@ctai^*bUi)Ar0GgxR@%nY`enJi|OEM{hlS$bpN-RFC?{@(8w z@omS%bj)<;iSDYCS*J2nUJ4Wp6$kqWdmqR>yKY30w$P2(6x>$k=YblqLH28B0HHyezY*d7b!?f#w7F_g)VSshesoFb`%UgibT7ax{(>CYe9_1@Q|OehK9dc zbC&nQj?^N{RUtG(xoc&+b0F$-!6}jS&=X-_9eMp%%eX6?WslnnBXnTGZXCC$g70~4VR>t22>mJgm3O!77#wy2+@dNF_7rr#Dt=R1Y zw{<7F3jzPTC8;+^T%str40*RNmZj{cgQPjl^U$dnKR!PLB&O|B^ z$LQ6tp;7X2gVA}D{WN=JG*%35%YbKul#WY-E9yD24r0ereP$C1_Tl(LxTKFJlhOJe z3{2+BJo_z)uI{i^luWtIDhx90xryC$KUjXd5J_!EdGe%_P3u=AW<|bb9(&hEmUZQ$ zS;KlZlu(7fD zxxVG8TG-@rqCT}vK0^+zQYEP&D{GRGnUd7z7LC-fDCQ4>Q@Fw;u@z)vkN9L-K<$&{ zD%3?H^E34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Vok1q}K?qmHlr73V_i6=NSA^=f4JgEtG!) zQjz`wd?l0rD4Sn{zLs6TK^e(^f&N2;y|(_RuK8^XNGJiM{C}vN*XI9RbN+5#LG?HD af2~0BQs4k@`q^oT0Q3XkkhZixfBhd53uT1> literal 0 HcmV?d00001 diff --git a/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Excel To Thumbnail Image.csproj b/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Excel To Thumbnail Image.csproj new file mode 100644 index 00000000..c0779fd8 --- /dev/null +++ b/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Excel To Thumbnail Image.csproj @@ -0,0 +1,14 @@ + + + + Exe + netcoreapp3.1 + Excel_to_Thumbnail + + + + + + + + diff --git a/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Program.cs b/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Program.cs new file mode 100644 index 00000000..b05f912f --- /dev/null +++ b/Real Time Examples in Excel/Excel To Thumbnail Image/Excel To Thumbnail Image/Program.cs @@ -0,0 +1,44 @@ +using System; +using System.IO; +using Syncfusion.XlsIO; +using Syncfusion.XlsIORenderer; + +namespace Excel_To_Thumbnail_Image +{ + internal class Program + { + static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + FileStream inputStream = new FileStream("../../../Data/InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(inputStream); + IWorksheet sheet = workbook.Worksheets[0]; + + //Initialize XlsIORenderer + application.XlsIORenderer = new XlsIORenderer(); + + //Convert to image + MemoryStream outputStream = new MemoryStream(); + sheet.ConvertToImage(sheet.UsedRange, outputStream); + + //Resize image to thumbnail size + System.Drawing.Image image = System.Drawing.Image.FromStream(outputStream); + System.Drawing.Image thumbnail = image.GetThumbnailImage(100, 100, () => false, IntPtr.Zero); + + //Save image + thumbnail.Save("Image.png", System.Drawing.Imaging.ImageFormat.Png); + + } + + System.Diagnostics.Process process = new System.Diagnostics.Process(); + process.StartInfo = new System.Diagnostics.ProcessStartInfo("Image.png") + { + UseShellExecute = true + }; + process.Start(); + } + } +}