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
13 de outubro de 2025

Como usar fórmulas do Excel em relatórios ao exportar para o MS Excel

A partir da versão FastReport .NET 2026.1, agora é possível exportar fórmulas para o Microsoft Excel. É importante configurar as exportações de fórmulas corretamente e seguir a sintaxe.
13 de outubro de 2025

Novas funcionalidades de exportação de imagens para o Microsoft Word no FastReport .NET

Na versão mais recente do FastReport .NET, adicionamos novos recursos de exportação de imagens. Agora você pode ajustar de forma independente o equilíbrio entre a qualidade e o tamanho do documento final.
30 de setembro de 2025

Como instalar o designer de relatórios FastReport .NET com plugins pré-instalados

Leia o artigo a partir da versão 2025.2.5 para FastReport .NET WinForms e FastReport .NET WEB permite instalar um designer de relatórios com todos os plugins sem construir arquivos dll.

© 1998-2025 Fast Reports Inc.