From 74f6f7e370fe784c6ab1e599dd97dc01c4f7d639 Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Wed, 2 Aug 2023 16:07:39 +0530 Subject: [PATCH] Adding the Conversion of Excel to PDF in WindowForms --- .../Convert-Excel-to-PDF.sln | 25 ++++ .../Convert-Excel-to-PDF/App.config | 6 + .../Convert-Excel-to-PDF.csproj | 97 +++++++++++++++ .../Data/InputTemplate.xlsx | Bin 0 -> 12260 bytes .../Convert-Excel-to-PDF/Form1.Designer.cs | 62 ++++++++++ .../Convert-Excel-to-PDF/Form1.cs | 48 +++++++ .../Convert-Excel-to-PDF/Program.cs | 22 ++++ .../Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ .../Properties/Resources.resx | 117 ++++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ .../Properties/Settings.settings | 7 ++ .../Convert-Excel-to-PDF/packages.config | 8 ++ 13 files changed, 529 insertions(+) create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF.sln create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/App.config create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.Designer.cs create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.cs create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/AssemblyInfo.cs create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.Designer.cs create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.resx create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.Designer.cs create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.settings create mode 100644 Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/packages.config diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF.sln b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF.sln new file mode 100644 index 00000000..cf9d224d --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Convert-Excel-to-PDF", "Convert-Excel-to-PDF\Convert-Excel-to-PDF.csproj", "{A97F8CB2-EC51-4F26-8484-5E6C9CEF5371}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A97F8CB2-EC51-4F26-8484-5E6C9CEF5371}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A97F8CB2-EC51-4F26-8484-5E6C9CEF5371}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A97F8CB2-EC51-4F26-8484-5E6C9CEF5371}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A97F8CB2-EC51-4F26-8484-5E6C9CEF5371}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3284DD27-BAF2-4847-8F36-CF85525FE23B} + EndGlobalSection +EndGlobal diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/App.config b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/App.config new file mode 100644 index 00000000..56efbc7b --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj new file mode 100644 index 00000000..86ff74d7 --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Convert-Excel-to-PDF.csproj @@ -0,0 +1,97 @@ + + + + + Debug + AnyCPU + {A97F8CB2-EC51-4F26-8484-5E6C9CEF5371} + WinExe + Convert_Excel_to_PDF + Convert-Excel-to-PDF + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Syncfusion.Compression.Base.22.2.5\lib\net46\Syncfusion.Compression.Base.dll + + + ..\packages\Syncfusion.ExcelToPdfConverter.WinForms.22.2.5\lib\net46\Syncfusion.ExcelToPdfConverter.Base.dll + + + ..\packages\Syncfusion.Licensing.22.2.5\lib\net46\Syncfusion.Licensing.dll + + + ..\packages\Syncfusion.Pdf.WinForms.22.2.5\lib\net46\Syncfusion.Pdf.Base.dll + + + ..\packages\Syncfusion.XlsIO.WinForms.22.2.5\lib\net46\Syncfusion.XlsIO.Base.dll + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Data/InputTemplate.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..e94fa38b48e4db83d1c11d199d8da684f3e5d900 GIT binary patch literal 12260 zcmeHt1zVfh)^>0$?ykk%p+L}L#i3Ynio0uZcM24DcP;KMuEiufW!bm17HCF04d-YHmEHa3;=+H1_00ju;7{^)>aNiRt`GK zt~N&Y9~fOMEl9EthQAeZ*?gBcqf>r?!lwBd)e(&hlBHFun(+_@+F@iX-zh6WytRJKoPw za7ou3trPhW!pw#YE$wjQW>__wx?ZVC(NkHeNe*`SL6pw(5wcuy)b{+maH)z(w2ey} z7jnlF$aLsQ{owu^Ff6mfLYJRs+pV#Um)T#AM(dR0=X3nl1;M_!stmx&nSLBrxWwdi`p%^`EwMc zhJqU&MQx?vzM}XQ53ps_aaCk82q7|rplI%^8bTbNv!_Fxc^MAfNSndb)i^nj?L9w3 z0ObEh;5rp%@(a)>G9Z2;fC#K(XJlc|#Q5v^f5iPSX6wIgy)^cnTsJdf;IYI*P~Y{` zVl;}dw6l;zGpVwdx8zUcx`-SK{Ka-E0u*IDKZv)VTD=|y78c(`?Ddget+AJep<(cm z*E^R5Cf?aP!qC39OAxm$UF|`2n!232N_s2hO6}AdMO)HPm?ho6OfLT8RJ00Zl<_?t z9C{u>AQpd;kH+_R>Pz}J;IBg~@7 z_g$#S-pSAq?%Bm+y=4nbK6@gW*ajqdREVOg*3Z11bCp%On1WZBn3lP^G;W4?t$g?A zQ9mM-ujy!x`2i@rVs$JZ&>)*i)uk^(4!(FN)hRP@Fe^Lz9AV_dm*cWoqWj}S`6bx- zK>LffLW`8ov=}zh-zUJac~eizLtHox^R>P;ADro^Q(nAI(;29T2*$K-aCOM+GauY| zkd+X7|Ei&tvg)hK34V8mu1VLUEc2y)NkXEOStBPEfDkcP=SI#3*rxzn&t!1In@cT! z;IlwL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PXqwaH^PgI8d*CTH@r+vi zLLGRx9-h6=rQBoBXs_Y3n}h)e2mNPOuO)SZn62cJ3P>N8VVf zFWGXVHb5t**uWXuuYJsXer4G*;&IbLECQaeW)C}UBDNcU);vC*V_kG(H=zrq!zq?s zB1D{%rI6su6qP+a(8UQgsHzUxxeR#fYG4ar;n#PG|vA}zPXx?Ad*I8w}+?*z<#x!*a~mZG5^#*dV9 zKcQ44_MmqU@vToLS-08ubMf;mUc9}Uz7}d!n9lie$WoEKV*Jj7?FciYYe|sW_guF^ zOu?B}IPPhU^(Ksj=!ZZUt{yV_mCl&uC_-pM1apT|S7GDa!oZk8^x&;dM{+bN< z*DTjd;lB@~{1ycOl;Qsn{{M`oyu^7qknkJn3*!I#C;nqR;U&t;R?%-1QBdayw3U~Q zqn7|L>vX>XU_sp{5Ww%M-AmDz+2(IiPmnMDCHgY=e2MTf`}mDeLHbe$|Co!s1bi8^ z{|4+Q`vdSr$o`KZ{7cZ6f$(q80Z_{HOUEz6;+F_71Ek*w7nFY>{4HF1DgE~lX|(rTE_+#=nc}(fphEU+zO*8VbY#000T}$OqAgn*P_j{{unaWRd^? literal 0 HcmV?d00001 diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.Designer.cs b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.Designer.cs new file mode 100644 index 00000000..f7268442 --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.Designer.cs @@ -0,0 +1,62 @@ +using System; +using System.Windows.Forms; +using System.IO; + + +namespace Convert_Excel_to_PDF +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private Button btnCreate; + private Label label; + private void InitializeComponent() + { + label = new Label(); + btnCreate = new Button(); + //Label + label.Location = new System.Drawing.Point(0, 40); + label.Size = new System.Drawing.Size(426, 35); + label.Text = "Click the button to Convert Excel document to PDF generated by Essential XlsIO"; + label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + + //Button + btnCreate.Location = new System.Drawing.Point(180, 110); + btnCreate.Size = new System.Drawing.Size(85, 36); + btnCreate.Text = "Convert Excel to PDF"; + btnCreate.Click += new EventHandler(btnConvert_Click); + + //Create Word + ClientSize = new System.Drawing.Size(450, 150); + Controls.Add(label); + Controls.Add(btnCreate); + Text = "Convert Excel document to PDF"; + } + #endregion + } +} + diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.cs b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.cs new file mode 100644 index 00000000..9c32b582 --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Form1.cs @@ -0,0 +1,48 @@ +using System; +using Syncfusion.ExcelToPdfConverter; +using Syncfusion.Pdf; +using Syncfusion.XlsIO; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Convert_Excel_to_PDF +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + private void btnConvert_Click(object sender, EventArgs e) + { + //Create an instance of ExcelEngine + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + + //Load an existing file + FileStream excelStream = new FileStream("../../Data/InputTemplate.xlsx", FileMode.Open, FileAccess.Read); + IWorkbook workbook = application.Workbooks.Open(excelStream); + + //Initialize ExcelToPdfConverter + ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook); + + //Initialize PDF document + PdfDocument pdfDocument = new PdfDocument(); + + //Convert Excel document into PDF document + pdfDocument = converter.Convert(); + + //Save the converted PDF document to MemoryStream. + pdfDocument.Save("Sample.pdf"); + + } + //Launch the PDF file + System.Diagnostics.Process.Start("Sample.pdf"); + } + } +} diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs new file mode 100644 index 00000000..93b5341f --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Convert_Excel_to_PDF +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/AssemblyInfo.cs b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..3b2be60a --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Convert-Excel-to-PDF")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Convert-Excel-to-PDF")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a97f8cb2-ec51-4f26-8484-5e6c9cef5371")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.Designer.cs b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.Designer.cs new file mode 100644 index 00000000..8727944d --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Convert_Excel_to_PDF.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Convert_Excel_to_PDF.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.resx b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.resx new file mode 100644 index 00000000..af7dbebb --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.Designer.cs b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.Designer.cs new file mode 100644 index 00000000..901006dd --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Convert_Excel_to_PDF.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.settings b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.settings new file mode 100644 index 00000000..39645652 --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/packages.config b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/packages.config new file mode 100644 index 00000000..7ea51e57 --- /dev/null +++ b/Getting Started/Windows Forms/Convert Excel to PDF/Convert-Excel-to-PDF/packages.config @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file