KB-26180: Generating daily reports.

Question:

How can I print a report daily, and always at a certain time (for example, 10h 41 min)?

Solution:

To do so, you can create a Demo Tag whose Scan is set to 10000ms (10 seconds), and write the following script in its OnValueChanged event:

Dim Name
IF hour == 10 AND minute == 41 AND second < 10
Name = Str(day)+Str(month)+Str(year)
Reports.Report1.PrintToFile(Name+”.csv”,1,”;”)
ENDIF

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 *