Excel to PDF .Net is a standalone C# library to convert Excel (*.xls and *.xlsx) spreadsheets and workbooks to PDF and Word documents
Nuget: sautinsoft.exceltopdf Nuget: sautinsoft.exceltopdf
Overview | Getting Started | Code Samples | History | License | Purchase | Support and Contacts

Getting Started

  1. Launch Microsoft's Visual Studio.
  2. Create a new project or open an existing.
  3. In the Solution Explorer right click by "References" and next click "Add Reference":

    Adding a reference to Excel to PDF .Net
  4. Add reference to the SautinSoft.ExcelToPdf.dll
    (The Library located in the subfolders of the folder "Bin" of the Package "Excel to PDF .Net (N.N.N.N)"
    For example: Bin\Net 4.0\SautinSoft.ExcelToPdf.dll or Bin\Net Core 2.0\SautinSoft.ExcelToPdf.dll

  5. Well done! Now your project is able to convert Excel workbooks to PDF, Docx or RTF format!

Adding «Excel to PDF .Net» through Nuget

  1. Launch Microsoft's Visual Studio.
  2. Create a new project or open an existing.
  3. Follow to the menu Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution.
  4. In the "Browse" tab, type "sautinsoft" and find the "SautinSoft.ExcelToPdf" package.

    Adding «Excel to PDF .Net» through Nuget
  5. Click by it and install the desired version. Well done! Now your project is able to convert Excel workbooks to PDF, Docx or RTF format!

Add dependencies through Nuget (optional):

If you have added the SautinSoft.ExcelToPdf.dll into your project in previous step 1 through Nuget, all dependencies are already installed automatically and therefore simply skip this step. If you are creating a .Net Framework (not .Net Core) app, also skip this step.

In case of you have added the reference to the SautinSoft.ExcelToPdf.dll by the old way (Solution Explorer->right click by "References"->Add Reference...), please add these dependencies using Nuget:

  1. System.IO.Packaging, 4.4.0.
  2. System.Text.Encoding.CodePages, 4.4.0.
  3. ZKWeb.System.Drawing, 3.0.0.

For example, to add "System.IO.Packaging, 4.4.0:
(Solution Explorer->right click by "References"->Manage Nuget Packages...->In the tab "Browse" type "System.IO.Packaging" and find the "System.IO.Packaging", select version "4.4.0")

Here we offered for you the full List with code examples in VB.Net and C#.

© Copyright SautinSoft™ 2002 - 2019