From edf28cebb15d89701cca478f08b82116257f8b6c Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Fri, 26 Jul 2024 17:29:44 +0530 Subject: [PATCH 1/2] Format rows and columns --- ... Row Height and Column Width in Pixels.sln | 25 +++++++++++++ .../Data/InputTemplate.xlsx | Bin 0 -> 8758 bytes ...w Height and Column Width in Pixels.csproj | 15 ++++++++ .../Program.cs | 32 +++++++++++++++++ ... Row Height and Column Width in Pixels.sln | 25 +++++++++++++ .../Data/InputTemplate.xlsx | Bin 0 -> 8542 bytes .../Program.cs | 34 ++++++++++++++++++ ...w Height and Column Width in Pixels.csproj | 15 ++++++++ 8 files changed, 146 insertions(+) create mode 100644 Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels.sln create mode 100644 Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Data/InputTemplate.xlsx create mode 100644 Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels.csproj create mode 100644 Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Program.cs create mode 100644 Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.sln create mode 100644 Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Data/InputTemplate.xlsx create mode 100644 Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Program.cs create mode 100644 Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj diff --git a/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels.sln b/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels.sln new file mode 100644 index 00000000..d351b2ff --- /dev/null +++ b/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34310.174 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Get Row Height and Column Width in Pixels", "Get Row Height and Column Width in Pixels\Get Row Height and Column Width in Pixels.csproj", "{2E122617-D2C7-4102-AF81-CEDA4F7F77BC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2E122617-D2C7-4102-AF81-CEDA4F7F77BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2E122617-D2C7-4102-AF81-CEDA4F7F77BC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2E122617-D2C7-4102-AF81-CEDA4F7F77BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2E122617-D2C7-4102-AF81-CEDA4F7F77BC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6121E09A-8AC5-4FBC-99AB-85C44D57F5A6} + EndGlobalSection +EndGlobal diff --git a/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Data/InputTemplate.xlsx b/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d7db35925daa9e30ac9186f66941f433f780860a GIT binary patch literal 8758 zcmeHsgIAcelaa-CY71T!V!K4G<)_yIZi}?!g^?lfAp&?q>J< z3+_GhO!qT$PSx~u*IRFik}MQ77629i4*&qj04B%TmIe?2Kms%XfC+$y)D?5EcLmzJ z8mf6Y0$uc(J?(5s^PwSWa{-Xx=l^&87w(vU(IE1JZ$)PvY2lg#&OVR(+C;64m` zWx@9D#NHB9-5e{c=bWf}G|@b4YpyDcvF|=?rz4it_I7o_k-beS$T30v?dk@ETr53( zhg5C2_#kH;?UP(ALg82VhK6zGnSeB>`Yx5%;%g!@WdxSkID&y2*$aId=qtSq$R#?T zc={JRRuwds(YXhUr_eSgFsH4p=zI*$H<+ZMW5|8JZH+&p7lq3<=Gw~L|;w3AW#MI5d6@A3H@j&JFP z9G|A_1+YEA0szm?PynUB!LnAJmEr*;+Tc`^@FcRr(tlFIxAOc>2<>pYmh} zRwyK=PQ|Ox#+Wq;5HLRwh2sdM2kG?6YcHGJR6xv#svebxSJrdo?kA3A2F#`u?V$)o z^2i-drepWJm{`nL`1ae9UEUI?t6K6{Rhr~D^OAcRn%TCWi)XfBKKe2#Wc90%zs9&> z8++47m3tYWQ}g3!$sD|HnXZ49TZuFhl(lBsWRVp3YDJz&e=9UVwMT)0V}< z!P&;d!NKMyZ7$HW|v|$*qGPdd$o4zGV1l#@6Jh8vzI*?1(RR&rdtwrE4?2-Aa=ZMXqt$kKsj`$ z5F<-+H;i+4V?H84VOCU70RGer0B|5zqpw9|Djkr~N!%7Mqm4)w?a!da8+=o$EiH3a zRH!zSyfx=;G!yDHO%ZyAhpddnSWwl!kl{QNBBg^4bCC%u&wwZ&eH&C70nFw0C{6dNMJFCkb+uQqD?J9f#?P~uAz9>9$>4B zcM@jgf)}!pz%M&#QRMQ~lq$rd8qr;=g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Iv=@V(*5q{RqXVmwZ&HqzyM`%LzojJ)fTPnN( z7I^dtxn&*7Xlo9iVVFifL$$Cu$r!(gJ8+HV1G;cV7TixoPR!NWjZ^y}rwVmC9Q5t9 zmawSRGr-a+@=(Y@)z*%ZTrEt!KD7|!-t z^6_g~Q(nzMk_-2y+2UwuV$qNZfkYe@ zS&_p|pzcVJmk4>5l#qkUOr$g~DvcpPbr$kPrg_zrk!9}=XXEQ8rsuu)<2HRf@5H5- zhaA_!A~@g3vzxG%D6m14KEr02@{3`tS>hGVT0DvyIi1Yui1^=q&*OK6$n%*M+zeW6` zK=`YcUrRZEY9Ru5j=-z=wXpN6f?tEtKNV!+{HEZ~(DYZ)U%C5F(U1855&f0Pf7S4J xKK)Z308l3Y0RF+Qzl#6e1^!ihjp#4pzdJ-FSs3u?g2Qg`D-cZJxg + + + Exe + net8.0 + Get_Row_Height_and_Column_Width_in_Pixels + enable + enable + + + + + + + diff --git a/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Program.cs b/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Program.cs new file mode 100644 index 00000000..f058e457 --- /dev/null +++ b/Format rows and columns/Get Row Height and Column Width in Pixels/NET Standard/Get Row Height and Column Width in Pixels/Get Row Height and Column Width in Pixels/Program.cs @@ -0,0 +1,32 @@ +using Syncfusion.XlsIO; +namespace Get_Row_Height_and_Column_Width_in_Pixels +{ + class Program +{ + public static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + + //Load an existing file + FileStream inputStream = new FileStream("../../../Data/InputTemplate.xlsx", FileMode.Open); + IWorkbook workbook = application.Workbooks.Open(inputStream); + IWorksheet worksheet = workbook.Worksheets[0]; + + //Get row height in pixels + int rowheight = worksheet.GetRowHeightInPixels(1); + + //Get column width in pixels + int columnwidth = worksheet.GetColumnWidthInPixels(1); + + Console.WriteLine($"Row Height: {rowheight}"); + Console.WriteLine($"Column Width: {columnwidth}"); + + //Dispose stream + inputStream.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.sln b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.sln new file mode 100644 index 00000000..91de5f31 --- /dev/null +++ b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34310.174 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Set Row Height and Column Width in Pixels", "Set Row Height and Column Width in Pixels\Set Row Height and Column Width in Pixels.csproj", "{6B56B9B2-0F14-4C38-9ACE-AB023040D00A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6B56B9B2-0F14-4C38-9ACE-AB023040D00A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6B56B9B2-0F14-4C38-9ACE-AB023040D00A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6B56B9B2-0F14-4C38-9ACE-AB023040D00A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6B56B9B2-0F14-4C38-9ACE-AB023040D00A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5CC7961F-D80D-4D04-8877-C28AF652E914} + EndGlobalSection +EndGlobal diff --git a/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Data/InputTemplate.xlsx b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..30ea02ab6155f1ccf223d687fa9de4f3c96a4bfc GIT binary patch literal 8542 zcmeHM1y`F{*9|TO1}I)APH``;#XYz?DaE~b3c-q(;96QJ?(R}tTD(}XQrsPaed)Y2 z@62@O`vvdZtaa~7^6Zl*&)xf+bI$=PAt4h0Pyy%w0Du~htJyQ6iU0thBLe^r0qBT^ zQcjNUAV+soEpKO#n=!kWgFV%IWJJbn03!VQf5-pu6DWxvQtjfzmAR0=k^0USu}~#} z{&Wx0hu_3VY4%OQVv582>-e4M!;4CZcZ9b5l@=pk-9&k^hWWk_*u5@jEuKk<)k7#d zS8T4ccpF)N97mXvt2yq4MmUdHHG6vgylMuu15!nyQ=-Hqf)VI}rbBaqK%U7fW{|qc zUq{pL!(@nikuw%l(5keok?MoZm)RmgtII%G{%CGdFx>17;Yf2wmNpkDWUN;CyH-gi zOor(KSv6G&~G#g(O2_)@HMq?7TOyR9nj4y=C}6)Sy<8rPm|*w1YpkWzZY-xX+Y4CFPr`wZH)iUw^5M&Y^p>(EfxRSBoqNN$yoE_-1f^K_q&+pZfe8Z%HIR zfiP{IXK83M%*6wZnZY$l)}>^n8}H@R+0=QeoT4}5%hp)t;)a5EN&`!@vJ*$rmAE79 zx?~s+KahtKiKYe`^s4ADT3nVPOg+=wD-Erv=g;1bA4z{Tos_qQE&f_id3QXOu;0zX zdbZ53-=6yHicDMcg`iD^MV6}&jkl?leaDG(di%p$KQ`5jehnI4{7dc;xjy>rvsVT+ zyhlTs-rf8dUB&%}1CU6{f<<^l`nyPo`W?g}NB{sn1_1CwM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z6gkHfd8)-{`+?QzWzgJ9H{hH1Apz}{SN%GhQT%Qr=H%=z@IxCe?Uu6|63UQ zz0dJ8_^)-=KcE1BA?B~(|EKEuvz?#oaer9y#rp3}{H;3ovz4D~BY#+V3h&v#YkWUf zN`5x*b9VQKff}M;4g8Vo{S5tUF#H1u0CbQ70DlXOKg0j(!2S$ZBL5ToH+Ke9LV@oM Q0Du91iT%h%DSy2CKg#0VhyVZp literal 0 HcmV?d00001 diff --git a/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Program.cs b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Program.cs new file mode 100644 index 00000000..3fc4869f --- /dev/null +++ b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Program.cs @@ -0,0 +1,34 @@ +using Syncfusion.XlsIO; +namespace Set_Row_Height_and_Column_width_in_pixels +{ + class Program + { + public static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + + //Load an existing file + FileStream inputStream = new FileStream("../../../Data/InputTemplate.xlsx", FileMode.Open); + IWorkbook workbook = application.Workbooks.Open(inputStream); + IWorksheet worksheet = workbook.Worksheets[0]; + + //Set row height in pixels + worksheet.SetRowHeightInPixels(2, 50); + + //Get column width in pixels + worksheet.SetColumnWidthInPixels(3, 100); + + //Save the workbook as stream + FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.Write); + workbook.SaveAs(outputStream); + + //Dispose stream + inputStream.Dispose(); + outputStream.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj new file mode 100644 index 00000000..c97e73e3 --- /dev/null +++ b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj @@ -0,0 +1,15 @@ + + + + Exe + net8.0 + Set_Row_Height_and_Column_Width_in_Pixels + enable + enable + + + + + + + From 5b640ddeb1546b7dd24d755d4fda8bace7f83330 Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Fri, 26 Jul 2024 17:32:29 +0530 Subject: [PATCH 2/2] Format rows and columns --- .../Data/~$InputTemplate.xlsx | Bin 0 -> 165 bytes ...t Row Height and Column Width in Pixels.csproj | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Data/~$InputTemplate.xlsx diff --git a/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Data/~$InputTemplate.xlsx b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Data/~$InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..ebc3a084fbc9411419ad939c23c7c551c21ca7a9 GIT binary patch literal 165 zcmbV?%LxD>5JO)X9_>dgVh};`gA7jpJ8S`a*aQMeUPz{^-zG83?qxJNRc*-V5Vh4%G>BMwtHp_X8)M8lM0F literal 0 HcmV?d00001 diff --git a/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj index c97e73e3..b1cfc0a8 100644 --- a/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj +++ b/Format rows and columns/Set Row Height and Column Width in Pixels/NET Standard/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels/Set Row Height and Column Width in Pixels.csproj @@ -9,7 +9,7 @@ - +