FileOpen function is used for open file for updating (reading and writing).
If you want open a pdf file use this function:
Code: Select all
function void projet1_maintenance()
string filePath = GetProjectPath() + "\feuille_de_maintenance.pdf";
TPageOpen("Maintenance");
ShellExec(filePath, "open", "", 0, "", "");
TPageCloseByName("Projet1");
end