Examples: BeforeRH event

In the following example, the BeforeRH event sets a user-defined calculated string field in the report’s header. It uses the VBA Time and Date function to compose a comment on the report:

Private Sub Report_BeforeRH(SuppressBand As Boolean)
	Comment = UserInfoGet.UserID + " printed this at " + str(Time) + _ 
	" on " + str(Date)
End Sub

Documentation Feedback