Report library

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > ST language > Embedded functions >

Report library

Previous pageReturn to chapter overviewNext page

reporttopdf(Input1, Input2) - used to save report to PDF format file. Input1 contains name of the report. Input2 contains name of the pdf file. Report is saved in the folder you setup in Project properties->Report folder.

 

Example:

reporttopdf(”Report1","reportfile");


reporttoxls(Input1, Input2) - used to save report to Excel format file. Input1 contains name of the report. Input2 contains name of the Excel file. Report is saved in the folder you setup in Project properties->Report folder.

 

Example:

reporttoxls(”Report1","reportfile");


reporttofile(Input1, Input2) - used to save report to any format file. Input1 contains name of the report. Input2 contains name of the file. Report is saved in the folder you setup in Project properties->Report folder. Possible formats: pdf, xls, html, docx, csv, jpg, png, gif, rtf, pptx, ods, odt

 

Example:

reporttofile(”Report1","reportfile.jpg");


reportsendbyemail(Input1, Input2, Input3, Input4) - used to send report by email. Input1 contains name of the report. Input2 contains name of the file saved and then send by e-mail. Report is saved in the folder you setup in Project properties->Report folder. Possible formats: pdf, xls, html, docx, csv, jpg, png, gif, rtf, pptx, ods, odt. Input3 contain subject of the E-mail message. Input4 body of the E-mail message. You E-mail client should be setup correctly.

 

Example:

reportsendbyemail(”Report1","reportfile.jpg", "Report title", "Here's report from TeslaSCADA");