Use «Excel to PDF .Net» library under Windows


You can easily use «Excel to PDF .Net» in any .NET application, because of the component is completely written in C# managed code.

  1. Add dependencies through NuGet (optional).
  2. Add the reference to SautinSoft.ExcelToPdf.dll.

1. Add dependencies through NuGet (optional):

  1. Open Microsoft Visual Studio and create a new project or open an existing
  2. Solution Explorer Window –> right click by "References" –> Manage NuGet Packages... –> In the tab "Browse" type "sautinsoft" and find the "sautinsoft.exceltopdf"
  3. Install using nuget

  4. Select the desired version API and click "Install"

The selected API will be downloaded and referenced in your project. All dependencies are already installed automatically.

Using Manage NuGet Packages you can also update Excel to PDF .Net to the desired version.


2. Add the reference to SautinSoft.ExcelToPdf.dll:

  1. First of all, download the Excel to PDF .Net package. Unzip it at any place in your computer and find the assembly file "SautinSoft.ExcelToPdf.dll"
  2. Open Microsoft Visual Studio and create a new project or open an existing project
  3. Solution Explorer Window –> right click by "Dependencies" –> Add Project References –> In the tab "Browse" find the "SautinSoft.ExcelToPdf.dll"
  4. Install adding reference

    Note
    SautinSoft.ExcelToPdf.dll assemblies compiled for old .NET Framework 4.6.1 - 4.8.1 are located inside (exceltopdf_net.zip –> Excel to PDF .Net (X.X.X.X)\Bin\.NET Framework X.X) folder.
    SautinSoft.ExcelToPdf.dll assemblies compiled for old .NET Core 2.0 - 3.1 are located inside (exceltopdf_net.zip –> Excel to PDF .Net (X.X.X.X)\Bin\.NET Core X.X) folder.
    SautinSoft.ExcelToPdf.dll assemblies compiled for new .NET 5, 6 and up are located inside (exceltopdf_net.zip –> Excel to PDF .Net (X.X.X.X)\Bin\.NET X.X) folder.

  5. Once you have referenced SautinSoft.ExcelToPdf.dll, add these dependencies to your project:
    .NET Standard 2.0, .NET Core 2.0 or up, .NET 5 or up:
    • System.Configuration.ConfigurationManager (>=4.7.0)
    • System.Drawing.Common (>=4.7.3)
    • System.IO.Packaging (>=4.4.0)
    • System.Text.Encoding.CodePages (>=4.5.0)
    • System.Xml.XPath.XmlDocument (>=4.3.0)

    .NET Framework 4.6.1 - 4.8.1:
    • No dependencies

Above we mentioned about the minimal versions of the dependencies, actually you can use newer versions.
Now your application is able to convert any *.xls and *.xlsx (Excel 97 - 2019 workbook) to PDF, RTF and DOCX formats!


If you need a new code example or have a question: email us at support@sautinsoft.com or ask at Online Chat (right-bottom corner of this page) or use the Form below:



Questions and suggestions from you are always welcome!

We are developing .Net components since 2002. We know PDF, DOCX, RTF, HTML, XLSX and Images formats. If you need any assistance with creating, modifying or converting documents in various formats, we can help you. We will write any code example for you absolutely free.