Examples

Convert Excel to PDF (.NET Framework)

How to Convert Excel to PDF

The following steps and sample code illustrate converting an Excel file to a PDF document 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 Converterclass by passing the source excel file path and the output PDF path. However, if required, advanced ExcelConversionOptions and ExcelConverter classes can also be used.

Steps to Convert Excel to a 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);

excelConverter.Convert("OfficeExcelFileConversion.pdf");

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!