• Login

DataSoft Corporation

Display the Current Date and Time in a Report

This tutorial demonstrates how to insert the current system date and time into a report using the Page Info control.
eurd-win-insert-datetime-result
Do the following to include information about the current date and time into a report:
Typically, the current date and time are displayed within the Report Header band. To add it to the report, right-click anywhere on the report's surface. In the invoked menu, point to Insert Band and click ReportHeader.


eurd-win-insert-datetime-add-reportheader-band


Drop the Page Info control from the Toolbox onto the ReportHeader band.


Set the control's PageInformation property to DateTime (e.g. using the smart tag).
eurd-win-insert-datetime-set-pageinfo


To apply a format string to the control's contents, type Created at {0:h:mm tt dd MMMM yyyy} into its TextFormatString property.


eurd-win-insert-datetime-set-formatstring

Tuesday, 08 January 2019 Posted in Extra Information on Reports
 DataSoft Store  Knowledgebase  Contact Us
 Sitemap  Privacy Policy
    Customer Service


Copyright © 2019 DataSoft Corporation All rights reserved.