Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to extract .frx from .app?
Message
De
28/06/2006 07:43:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01131551
Message ID:
01132322
Vues:
13
>>Hi Dmitry,
>>
>>You could try StrToFile() and FileToStr().
>>
>>In my test app I include the report 'repoincl.frx' into my app and extract it into 'c:\temp\'.
>>
>>STRTOFILE(FILETOSTR("repoincl.frx"),"c:\temp\repoincl.frx")
>>STRTOFILE(FILETOSTR("repoincl.frt"),"c:\temp\repoincl.frt")
>>MESSAGEBOX("report 'repoincl.frx / .frt' extracted to 'c:\temp\'")
>>
>>
>>HTH
>>
>
>Hi Robert,
>
>Thank you very much for very helpful suggestion.

I also do it this case in many application. I usually call my reports something like OrgGledger.FRX, and include them into my reports. My program checks for these files minus the preceding Org, and if they don't exist, I strtofile() them out of the exe. Then your program can change the report files on your disk at runtime without changing the master reports.

This also gives my customers the possibility to change the reports as much as they want. If they mess it up completely, they delete the files they have changed, and new are created automatically from the master reports in the exe.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform