logo
small logo
  • Produkte
  • Shop
  • Support
  • Über uns
  • Customer panel Support
    • en
    • de
    • JP
    • ZH
  • Home
  • /
  • Articles
  • /
  • How to export several reports into one PDF file
  • Die Events PreviewControl.OnPrint und PreviewControl.OnExport

    1. Oktober 2020

    FastReport 2019.4 bietet eine Möglichkeit, die Events PreviewControl.OnPrint und PreviewControl.OnExport zu steuern, die direkt aufgerufen

    read more
  • MS Word versus Open Document Text. Was ist besser?

    19. Oktober 2020

    Wenn wir von Texteditoren sprechen, stellen wir uns die Leuchte sofort als Microsoft Word vor,

    read more
  • Wollten Sie Tabellen für den Benutzer generieren - Excel oder OpenOffice Calc?

    8. Oktober 2020

    Tabellen. Seit Jahrhunderten werden sie verwendet, um dieselbe Art von Daten für Buchhaltungszwecke, Zählbeträge und

    read more
  • So organisieren Sie Vererbung der Reporte in FastReport .NET

    29. Januar 2021

    Wenn Sie angewiesen werden, eine große Anzahl von den Reporten innerhalb desselben Unternehmensstils zu erstellen,

    read more
  • Wie schützen Sie Ihr PDF?

    30. November 2020

    Am Vorabend des Datenschutztages haben wir beschlossen, ein Material zum Schutz von PDF-Dokumenten vorzubereiten. PDF-Dokumente

    read more

How to export several reports into one PDF file

8. Januar 2020

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.

about product buy
avatar
Dmitriy Fedyashov
Technical Writer
Fast Reports Team: Dmitriy Fedyashov - Technical Writer at Fast Reports
.NET FastReport

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Shop
  • Download
  • Dokumentation
  • Referenzen
  • Informationen zur Deinstallation unserer Produkte
  • FAQ
  • Tutorial Video
  • Forum
  • Articles
  • Unsere Nachrichten
  • Presse über uns
  • Partner
  • Außergewöhnliche Lizenzierung
  • Kontakte

© 1998-2023 by Fast Reports Inc.

  • Datenschutz