CSharp PDF Reports
Version
2026.11
License
Shareware
Trial Limitations
Fully operational for development and testing purposes. Deployment requires a commercial license.
Operating Systems
Windows
System Requirements
Requires .Net Framework 4.x or .Net Core 2.x or .Net Standard on the Microsoft, Mac or Linux
File Size
16.92 MB
Release Date
3/8/2022
Last Updated
11/13/2026
683 views 0 downloads
It can create pdf reports using C# and create a report generator with ASP.NEt

Your report already looks right on screen. It might be a Crystal Report, an SSRS output, or an XML export you styled yourself. Now someone wants it as a PDF that keeps its layout and can be emailed or archived. CSharp PDF Reports is the IronPDF approach to this job. You export or build the report as HTML, then render that HTML to a PDF from your C# or VB.NET code.

Quick facts

  • Library: IronPDF for .NET, with report generation from HTML, Crystal Reports, XML and SQL Server data
  • Languages: C# and VB.NET
  • Install: NuGet package named IronPdf, or a manual DLL download
  • Trial: free 30-day trial with full functionality
  • Licensing: perpetual licenses with a 30-day money-back guarantee
  • Platforms covered in the install guides: Windows, Linux, Mac, Azure, AWS and Docker

How the report workflow works

The method is simple. Generate the report as an HTML document, then render the HTML as a PDF. The basic version is a single line of code that points the Chrome-based renderer at an HTML file and saves a PDF. The rendering engine handles HTML5, CSS3 and JavaScript, so what you see in a browser is close to what lands in the PDF.

Key features

Turn Crystal Reports output into PDF

Export the report from Crystal Reports as HTML 4.0 using the File, Export menu. Then render that file to PDF. If you want more control, you can also drive the export from code. Load the RPT file, export it to a temporary HTML file, and render that file to PDF in the same method.

Style XML data into a finished report

XML is still a common export format. You can parse it and build HTML yourself. A tidier route is to use XSLT with the XslCompiledTransform class to convert XML straight to HTML, then render the result to PDF.

Export SQL Server reports

SQL Server and the free SQL Server Express both include reporting tools. Reports from them can be rendered as HTML, customized, and converted to PDF. JavaScript charts such as C3.js, D3.js and Highcharts can be rendered too.

Serve PDFs straight from ASP.NET WebForms

The AspxToPdf class renders the current ASPX page as a PDF on page load. You can set margins, paper size, orientation, background printing and whether JavaScript runs. The file can be sent to the user as a download attachment.

Add headers, footers and page numbers

Text headers and footers can show the URL, the date and time, and "page of total" counters. You can set fonts and sizes, and turn on divider lines.

Sign finished reports so tampering shows

Once a report is saved, you can digitally sign it with a p12 or pfx certificate file. Signing with a hardware security module is also supported, and so are passwords and permissions.

Who it's for

  • .NET developers who already have reports in HTML, Crystal Reports, XML or SQL Server Reporting Services and need PDF output.
  • Teams building ASP.NET applications that must send invoices, management summaries or database reports as PDFs.
  • Developers who run report generation as a batch or scheduled process, since PDFs are produced from code.

Pros and cons

What works well

  • The idea is easy to grasp: HTML in, PDF out, in a few lines of code.
  • It works with the reporting tools you already own instead of replacing them.
  • The Chrome-based renderer keeps formatting and styling.
  • The free 30-day trial includes full functionality, with support during the trial.

What to weigh

  • Your reporting tool must be able to output HTML. A tool with no HTML export needs another route, such as XML plus XSLT.
  • Crystal Reports needs a two-step export, first to HTML, then to PDF.
  • Licensing is by developers, locations and projects. Redistributing the library inside your own product or SaaS needs extra coverage.

FAQs

Can I turn a Crystal Report into a PDF?

Yes. Export it to HTML 4.0 from the File, Export menu, then render that HTML file to PDF. You can also do the export in code and chain the render.

How do I install it?

Add the IronPdf package through NuGet, or download the DLL manually.

Can I try it before buying?

Yes. A trial key unlocks the full product for up to 30 days, and you get support during the trial.

Is a purchase one-time or a subscription?

Licenses are perpetual, with one year of support and updates included. Longer support periods can be bought later.

Can I use it in a SaaS product I sell?

Redistribution and SaaS use need royalty-free redistribution coverage. Internal use needs none.

System requirements

  • A .NET project in C# or VB.NET, with the IronPdf NuGet package or the DLL.
  • The vendor's install guides cover Windows, Linux, Mac, Azure, AWS and Docker setups.
  • For Crystal Reports exports, you need the Crystal Reports assemblies in your project.
Copyright © 2026, Ivertech. All rights reserved.