How to connect to MongoDB from the FastReport .NET report

2019-11-16

First of all, you need to assemble a plug-in connector library to the database for the reporting designer. It is located in a folder:

C:\Program Files (x86)\FastReports\FastReport.Net\Extras\Connections\FastReport.MongoDB

Open the project, restore NuGet packets and reassemble it.
As a result, in the Release folder you get FastReport.MongoDB.dll library.
Now, in the report designer, you can add a plug-in to the menu File-> Options:

 

Once you've added a plug-in this way you need to restart the report designer.
Now let’s move to creating a data source. In the wizard of creating a new connection, we can choose an available connector:

 

The MongoBD connector appeared on this list after adding a plug-in to the designer. Now that we've selected a connector, we need to set up a connection:

 

The local or remote server acts as a host. After successfully connecting to the database, you need to select tables:

Here the tables are presented in the usual form for the user relational database. In fact, you can see a hierarchical structure. For example system.users table has a column credentials, which in turn is a table.
Since this is not a SQL database, SQL Editor queries is not available to us. So we cannot filter data at the stage of their preparation.

.NET .NET FastReport FastReport Connection Connection Data Source Data Source
8. April 2025

Konvertieren einer Microsoft Word-Datei (.docx) in eine FastReport .NET-Datei (.frx)

Ein Konverter von Microsoft Word (.docx) Format zu einem file FastReport .NET (.frx): Beschreibung und Anweisungen zur Verwendung des Tools.
8. April 2025

Einrichten der Verbindung mit Apache Ignite in FastReport .NET

In diesem Artikel werden wir untersuchen, wie Sie eine Verbindung zu Apache Ignite in FastReport .NET konfigurieren. Sie lernen die notwendigen Schritte, um das Plugin über Code und den Berichtsdesigner zu verbinden.
25. März 2025

Mehrere Berichte in einen Bericht in FastReport .NET zusammenfassen

FastReport .NET ist ein leistungsfähiges Werkzeug zum Erstellen und Verwalten von Berichten. In diesem Artikel erfahren Sie, wie Sie mehrere Berichte in FastReport .NET zu einem kombinieren.
Fast Reports
  • 800-985-8986 (Englisch, USA)
  • +31 97 01025-8466 (Englisch, EU)
  • +49 30 56837-3928 (Deutsch, DE)
  • +55 19 98147-8148 (Portugiesisch, BR)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2025 Fast Reports Inc.