Opening a file via Elipse SCADA.

Question:

How can I open an ordinary file (for example, an Excel file) via Elipse SCADA?

Solution:

To open any files via Elipse SCADA, there are two possibilities:

1. Use Global Manager’s ShellExecute function. Example:

//Opens the selected file
ShellExecute(“open”, “D:\ExcelFile.xls”, “”,”” , 1)

or
2. Use Global Manager’s Execute function. Example:

//Via Execute, inform both the program that opens this kind of file and the file itself, with a space between paths.
Execute(“C:\Program Files\Microsoft Office\Office12\Excel.exe D:\ExcelFile.xls”)

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 *