Report.NET 2
Welcome to the Report.NET Documentation!
Report.NET is a powerful and intuitive C# library designed for effortlessly generating PDF files. With its user-friendly API, you can create professional reports featuring text, images, tables, and more - all with minimal code. Whether you're building invoices, reports, or custom documents, Report.NET makes PDF generation seamless and efficient.

Features
- Built for .NET – Fully written in C# and designed specifically for Microsoft .NET.
- Cross-platform compatibility – Supports Windows and Linux environments.
- Simple and Fluent API – Generate PDFs effortlessly with clean and intuitive C# syntax.
- Rich text formatting – Customize fonts, sizes, styles, and alignments for professional-looking documents.
- Seamless graphics integration – Insert images, lines, rectangles, and other visual elements with ease.
- Flexible object positioning – Easily align and transform text, images, and graphical elements.
- Metric and point-based measurements – Supports both metric units and points (1/72 inch).
- Dynamic headers and footers – Define page headers and footers for multi-page documents.
- Advanced table layouts – Create structured reports with tables, columns, and precise positioning.
- Flexible Data Integration – Leverages C# to seamlessly work with various data sources, including databases, XML files, and in-memory objects, ensuring versatility for diverse reporting needs.
- Minimal code footprint – Generate a "Hello World" PDF in just ten lines of code.
- Optimized for archival – Produces highly compact PDFs when using built-in PDF fonts.
- Comprehensive documentation – Well-documented API for easy integration and development.
Getting Started
Get started quickly with the documentation for Report.NET. Whether you're a beginner or an experienced developer, you'll find clear guides, API references, and practical examples to help you generate PDFs effortlessly. Our documentation, created with DocFX, ensures easy navigation and up-to-date information for seamless integration.
- Documentation: Introduction
- Reference: API
- Getting Started
Installation
You can install Report.NET Version 2 via NuGet, install package: Report.NET
Basic Usage
Here is a simple example of generating a PDF file:
HelloWorldReport.cs
using Root.ReportNet.Pdf;
public class HelloWorldReport : PdfReport {
protected override void Create() {
StandardFontDef fd = new(StandardFont.Helvetica);
FontProp fp = new(fd, 50);
Page page = new();
page.AddCenteredMM(200, new RepString(fp, "Hello World!"));
AddPage(page);
}
}
Program.cs
public class Program {
static void Main() {
HelloWorldReport report = new();
report.Save();
}
}
License
The license has not been determined yet.