problem with fileopen()

Discussion about Code Builder Builder and Winlog language support.
neroclast
Posts: 1
Joined: Mon May 05, 2014 11:30 am

problem with fileopen()

Postby neroclast » Mon May 05, 2014 11:36 am

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



User avatar
admin
Site Admin
Posts: 322
Joined: Tue Nov 17, 2009 1:18 pm

Re: problem with fileopen()

Postby admin » Fri May 09, 2014 12:27 pm

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


Return to “Code - Code Builder”

Who is online

Users browsing this forum: No registered users and 1 guest