ActiveReports 6 Online Help
Save and Load Report Files (RDF)
Show AllShow All
Hide AllHide All

ActiveReports allows reports to be saved into their own standard format called an RDF file (Report Document Format). In this format, the data is static. The saved report displays the data that is retrieved when you run the report. Once a report has been saved to an RDF file, it can be loaded into the viewer control.

To save a report as a static RDF file

  1. Double-click the title bar of the Windows Form to create a Form Load event.
  2. Add the following code to run and save the report.

To save the report to RDF format in Visual Basic.NET

To save the report to RDF format in C#

To load a saved RDF file into the ActiveReports viewer

The Windows Form Viewer can display RDF files made with any version of ActiveReports, including COM versions. The FlashViewer viewer type of the WebViewer (Professional Edition) may be able to display RDF files made with previous versions, but this is not guaranteed for every RDF.

  1. Double-click the title bar of the Windows Form to create a Form Load event.
  2. Add the following code to load the saved report.

To load an RDF file in Visual Basic.NET

To load an RDF file in C#

To save or load report files to a memory stream

  1. Double-click the title bar of the Windows Form to create an event-handling method for the Form_Load event.
  2. Add code to the handler to save the report to a memory stream and load the memory stream into the ActiveReports viewer.

The following examples show what the code for the method looks like.

To write the code in Visual Basic.NET

To write the code in C#

See Also

Concepts