Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to extract .frx from .app?
Message
From
28/06/2006 07:43:30
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01131551
Message ID:
01132322
Views:
12
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform