How to Use the Data Dictionary in FastReport .NET

2026-11-27

How to Use the Data Dictionary in FastReport .NET

When developing reports in FastReport .NET, users often need an efficient way to organize their data. The Data Dictionary is a tool that transforms report creation from a chaotic process into a structured and efficient workflow. It is important to understand that the Data Dictionary does not store the actual data (such as table rows). Instead, it stores only the metadata—the description of the data structure.

In this article, we'll take a closer look at what the Data Dictionary is, how to work with it, and the capabilities it provides.

 


 

Managing the Data Dictionary Through the User Interface

All Data Dictionary management operations are available from the Actions drop-down menu. The New Data Dictionary command completely clears the current structure and creates a new, empty dictionary.

To work with dictionary files, use the Open Dictionary... and Save Dictionary... commands. The first option loads a previously saved dictionary file, while the second saves the current configuration so it can be reused in other projects.

Actions Menu

The Merge Dictionaries... command is used to integrate elements from an external dictionary file into the current report. Keep in mind that if object names in the external dictionary match those already present in the current dictionary, the existing objects will be completely replaced. Therefore, before starting the merge process, make sure that object names are unique to avoid accidentally overwriting or losing existing definitions.

 


 

Dictionary Merge Example

Let's create the first report with the following data:

Report with a Connected Data Source

The Data Dictionary contains the following items:

  • Connection 1 — a connection to the data source;
  • Total 1 — a total variable;
  • Parameter 1 — a report parameter.

Now save the Data Dictionary from the first report. From the Actions menu, select Save Dictionary... and save the configuration as Dictionary1.frd.

Next, create a new report with a different set of data:

New Report

The new report contains:

  • Connection 2 — a connection to the data source;
  • Total 2 — a total variable;
  • Parameter 2 — a report parameter.

Now merge the Data Dictionaries from these two reports. From the Actions menu, select Merge Dictionaries... and choose the previously saved Dictionary1.frd file.

The result will look as shown in the image below:

Merged Data Dictionaries

After the merge, the report contains all elements from both dictionaries:

  • Connection 1 and Connection 2;
  • Total 1 and Total 2;
  • Parameter 1 and Parameter 2.

 


 

Managing the Data Dictionary in Code

Programmatic management of the Data Dictionary is performed through the Dictionary property of the Report object. The Load and Save methods work directly with .frd file paths, making it easy to import and export Data Dictionary configurations:

Report report = new Report();
report.Load(@"C:\Reports\MainReport.frx");
 
// Loading dictionary from file
report.Dictionary.Load(@"C:\Reports\Dictionary.frd");
 
// Saving dictionary to file
report.Dictionary.Save(@"C:\Reports\ExportedDictionary.frd");
 
report.Design();

To merge Data Dictionaries, the Merge method requires the external dictionary to be loaded into a separate Dictionary object first:

Report report = new Report();
report.Load(@"C:\Reports\MainReport.frx");
 
// Create a temporary Data Dictionary and load the data into it
var extraDict = new FastReport.Data.Dictionary();
extraDict.Load(@"C:\Reports\AdditionalData.frd");
 
// Merge it with the report's main Data Dictionary 
report.Dictionary.Merge(extraDict);
 
report.Design();

 


 

Conclusion

In this article, we've explored what the Data Dictionary is in FastReport .NET and how it simplifies working with report data. We covered how to manage the Data Dictionary both through the graphical user interface and programmatically.

You can now automate report creation, manage reusable report templates, and build flexible reporting solutions that are easy to scale and maintain across your team.
 

.NET FastReport Data Source Designer Report
November 26, 2026

Generating a PDF417 Barcode in FastReport .NET and FastReport VCL

Learn how to generate a PDF417 barcode in FastReport .NET and VCL: the ISO/IEC 15438 format, designer setup, and C# and Delphi code examples.
November 10, 2026

How to add your own component to FastReport Online Designer

Learn how to add a custom component to FastReport Online Designer: build a JS plugin with a preview and settings dialog, then connect the server-side .NET class.
October 26, 2026

Progress Bar in Delphi: The TfrProgressBar and TfrxProgressBar Components from FastReport VCL

Let’s take a closer look at the TfrProgressBar and TfrxProgressBar components from FastReport VCL: configuring the progress scale, thresholds and markers, binding to data, and a Delphi example.

© 1998-2026 Fast Reports Inc.