How to make auto refreshable web reports

2017-03-27

When there is a need to reflect the current situation in your enterprise with the help of web reports, you might need to update information automatically on a site without any user's involvement. If you use more than one of these reports with auto refresh function on a single page of a web site, you get the “Dashboard”. Fortunately, FastReport provides auto refresh of a report by timeout.

 Let us take a close look at the following example of my report “Date” that displays the current date and time.  By this means we can see the time of the report refreshing.

  1. Create a simple web report.
  2. Add a data source to the web form - the component “SQLDataSource”. From the drop - down menu select “ConfigureDataSource”.

  1. Set the connection to the database.
  2. Now place the “WebReport” component on the web form. Select the item “Select Data Source” from the drop - down menu.

Choose the only available option.

  1. From the drop - down menu select "Design Report "
  2. Create a simple report.  The system variable Date was added to the title of the report:

 

  1. Close the report editor. Disable the toolbar of the report window.
  2.  In “WebReport” object you should set “ShowToolbar” property to “false”.
  3. Set “RefreshTimeout” property. In this property the refresh period is set. For example, set the interval 5. Time is set in seconds.
  4. Run the application:

 

Wait for 5 seconds:

 

By this means it is possible to update information in a report continually. This can be useful when displaying statistical data or displaying information in the form of graphs. FastReport provides the opportunity to solve the problem of displaying dynamic information.

.NET .NET FastReport FastReport ASP.NET ASP.NET WebReport WebReport
April 22, 2025

Working with the TfrShellTreeView Component in FastReport VCL

In this article, we will look at the TfrShellTreeView component. It is designed to display file system elements and is partially analogous to the TDirectoryListBox, TDirectoryOutline, and TShellTreeView components.
April 21, 2025

How RFID Tags Work in FastReport VCL

In this article, we'll check out how RFID tags work with the new TfrxDeviceCommand object in FastReport VCL with release 2025.2.
April 08, 2025

How to Set Up a Connection to Apache Ignite in FastReport .NET

In this article, we will explore how to configure a connection to Apache Ignite in FastReport .NET. You will learn the necessary steps to connect the plugin via code and the report designer.
Fast Reports
  • 800-985-8986 (English, US)
  • +31 97 01025-8466 (English, EU)
  • +49 30 56837-3928 (German, DE)
  • +55 19 98147-8148 (Portuguese, BR)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2025 Fast Reports Inc.