Page 1 of 1

problem with fileopen()

Posted: Mon May 05, 2014 11:36 am
by neroclast
hello,

I want use the function fileopen() but when call it, the function don't open the document.
(Sorry for mistakes in setences).

Code:

Code: Select all


function void projet1_maintenance()

    TPageOpen("Maintenance");
    FileOpen("feuille_de_maintenance.pdf","a");
    TPageCloseByName("Projet1");

end



Re: problem with fileopen()

Posted: Fri May 09, 2014 12:27 pm
by admin
Dear Sir,
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


Best Regards