Convert Excel to PDF (.NET Framework)

How to Convert Excel to PDF

Below are steps and sample code to convert Excel files to PDF documents using the DynamicPDF Converter product. Converting an Excel file to PDF file is as simple as a method call using the static Convert method of the Converter class by passing the source excel file path and the output PDF path. However, if required advanced ExcelConversionOptions and ExcelConverter classes can be used.

Steps to convert excel to pdf

  1. Create a ExcelConversionOptions object to set the options.
  2. Create a ExcelConverter object by specifying the Excel file and the options.
  3. Invoke the Convert method on the ExcelConverter and specify the PDF file name.

Sample Code - C#

ExcelConversionOptions options = new ExcelConversionOptions(false);

ExcelConverter excelConverter = new ExcelConverter("DocumentA.xlsx", options);


Sample Code - C# using Convert()

Converter.Convert("DocumentA.xlsx", "MyOutput.pdf")

Getting Started

DynamicPDF Converter Information

More information can be found here:

Try the free evaluation.

Why Choose DynamicPDF?

  • Transparent Pricing
  • Lots of Features
  • Easy to Use
  • Great Support
  • Efficient Performance
  • Product Maturity (Over 18 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

We’re Not The Only Ones That Think We’re Great!