Generate PDF Report in C# (.NET Core)

Merge, combine PDFs in C#, .NET, .NET Core or Standard

Automated PDF report generation can be done using DynamicPDF ReportWriter product. Reports can be created from your business objects or a varity of data sources including Sql Server, Oracle or MySql databases.

How to Generate PDF Report

DynamicPDF Designer is used to create a PDF report template (DLEX file) and the ReportWriter lays out the data to create the PDF report. DynamicPDF Designer is a free tool that allows the creation of a report templates.

Steps to generate PDF report

  1. Create a DocumentLayout object using a DLEX file as a template.
  2. Create a NameValueLayoutData object and add the necessary data.
  3. Call the 'Layout' method on the DocumentLayout to create a Document object.
  4. Invoke the Draw method on the Document to save the PDF.

Sample Code - C#

DocumentLayout layoutReport = new DocumentLayout("SimpleReportWithCoverPage.dlex");

NameValueLayoutData layoutData = new NameValueLayoutData();
layoutData.Add("ReportCreatedFor", "Alex Smith");
layoutData.Add("Products", SimpleReportWithCoverPageExampleData.Products);

Document document = layoutReport.Layout(layoutData);

Getting Started

NuGet Package

DynamicPDF ReportWriter is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET package. The Core Suite package includes Generator, Merger and ReportWriter.

Nuget Logo
NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET

Example Project

An example project showing this functionality can be cloned or viewed from GitHub:

GitHub Logo
Clone or View Example Project on GitHub

DynamicPDF ReportWriter Information

More information can be found here:

Available in Other Platforms

DynamicPDF ReportWriter PDF Library is available for COM/AxtiveX platforms. Refer to the product page for more details.

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!