Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy a FRX file from an APP file?
Message
De
14/07/2019 15:04:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01669580
Message ID:
01669582
Vues:
75
Have not coded vfp for a few years in earnest, but first tries would revolve around using/opening the report as table or SQL-Select-cursor and COPY TO temp dir, then on adding the minimal proc you already wrote about...

//upd: Opening tables in .App definately is possible, as we did global replaces of all lookup/tarif tables in insurace via single app - dim memory hints that opening was done from func inside as well, not clear if that was laziness or necessity. You could add sa single factory function to the app, eval() ling a parameter string from exe and are set to work with single proc if similar tasks surface...

>Hi,
>
>My app consists of two major files: the EXE and the APP. The .APP file (e.g. MyApp.App) is where all the report files reside (all FRX files). I want to copy a FRX/FRT file from the MyApp.App to a TEMP folder. For example, if the FRX/FRT files were in the EXE, I would do the following (which works):
>
>
>lcExtName = FORCEPATH( "RPT_" + TRANSFORM(_VFP.PROCESSID) + "_" + SUBSTR(SYS(2015),3,10), GETENV("temp"))
>STRTOFILE(FILETOSTR(FORCEEXT(cCustomRepName, 'FRX')), m.lcExtName+".FRX")
>STRTOFILE(FILETOSTR(FORCEEXT(cCustomRepName, 'FRT')), m.lcExtName+".FRT")
>
>
>But when the file cCustomRepName is in the .APP, it fails.
>
>Any suggestions?
>
>TIA,
>
>UPDATE. One way I see doing it is to move the code (sample above) to the MyApp.app procedure. But
>if there is a way to do it from the .EXE file, it would be better.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform