Displaying the timestamp of creation of a Section Report.

Question:

How can I display in a Section Report of Elipse E3 the timestamp of its creation?

Solution:

To do so, you must:

  1. Add a Demo Tag with Type property set up as 3-Current Time.
  2. In the section report, add a Label or TextBox.
  3. Add a script to the Report Section to pass the value of the Demo Tag to the Label or TextBox.
  4. In the script, convert the tag to Data format, because a CurrentTime tag will return the current time in Double format.
  5. 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.Text = DateTime.FromOADate(Application.GetServerValue("Data.CurrentTime"))
Me.TextBox1.OutputFormat = "dd/MM/yyyy hh:mm:ss"
End Sub
Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *