How to export several reports into one PDF file

2020-01-08

The theme for this article was one of the questions users of the generator List & Label reporting on the support forum.

I need to create a package of documents into 1 PDF file. So far I am able to create individual PDF file but I am not sure how to combine them. Can LL21 do this or I need to find different method to do this outside LL engine?

As you understand from the question, the user wants to get one PDF file based on several reports.

Unfortunately, a standard solution in L&L is not provided for this case.

Typically, reports are distributed in popular data formats. For example, in PDF, DOC, and XLS. And if you need to transfer a lot of one party reports, we have to make the export of each of them in the desired format. On the other hand, those who receive these files will have to open each and print. Much more convenient it would be to place all of the reports in a single document. This will make sending and printing muhch easier.

Let's look at how you can implement this functionality in FastReport.Net. You need to generate reports from the user application code.

1
2
3
4
5
6
7
8
9
10
11
Report report = new Report();
 DataSet data = new DataSet();
 data.ReadXml("K:/My documents/nwind.xml");
 report.RegisterData(data);
 report.Load("K:/My documents/Master-Detail.frx");
 report.Prepare();
 report.Load("K:/My documents/Box.frx");
 report.Prepare(true);
 //report.ShowPrepared();
 FastReport.Export.Pdf.PDFExport exp = new FastReport.Export.Pdf.PDFExport();
 report.Export(exp, "K:/My documents/exp.pdf");

 The idea is very simple. In one report object, we upload and build a sequence of several reports. As a result, the prepared reports will be saving in the same object, and when we need we can display (ShowPrepared) or just export (Export) them.

The result is a consistent display of reports in the PDF document:

This way we can create all the reports from the certain folder in a cycle.

.NET FastReport .NET FastReport
26. November 2024

Installing FastReport on .NET 8.0 and Creating a Simple Report

The purpose of this article is to explain step by step how to install FastReport on .NET 8.0 and how to create a simple report. Taking the reporting process from the beginning, it will show how to connect, design and view reports.
20. November 2024

Lokalisierung und Ändern von Sprachen in FastReport VCL

FastReport VCL unterstützt 40 Sprachen für die Schnittstellenlokalisierung und ermöglicht es Ihnen, die Sprache im laufenden Betrieb über Menüs oder Code ohne Neukompilierung zu ändern.
1. November 2024

Neue Funktionen des FastReport VCL Berichtseditors

Wir betrachten die neuen Funktionen des Berichtseditors: Hilfslinien, Hervorhebung von sich schneidenden Objekten, aktualisierte Berichts- und Datenbäume.
Fast Reports
  • 800-985-8986 (Englisch, die USA)
  • +4930568373928 (Deutsch)
  • +55 19 98147-8148 (Portugiesisch)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2025 Fast Reports Inc.