Question:
How can I display in a Section Report of Elipse E3 the timestamp of its creation?
Solution:
To do so, you must:
- Add a Demo Tag with Type property set up as 3-Current Time.
- In the section report, add a Label or TextBox.
- Add a script to the Report Section to pass the value of the Demo Tag to the Label or TextBox.
- In the script, convert the tag to Data format, because a CurrentTime tag will return the current time in Double format.
- Finally, in the same script, change the Field formatting and adjust its OutputFormat property.
Example:
Sub ActiveReport_ReportStart dim Application = Activator.CreateInstance(Type.GetTypeFromProgID("Reports.E3ApplicationLink")) Application.LinkWithApplication(rpt) Me.TextBox1.OutputFormat = "dd/MM/yyyy hh:mm:ss" Me.TextBox1.Value = DateTime.FromOADate(Application.GetServerValue("Data.CurrentTime")) End Sub