Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying .frx file from .exe to disk
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00867063
Message ID:
00867449
Vues:
27
Hi Dmitry,

I don't see anything in your code that may cause such problem. Can you try slightly modified version of your code below?
cReportName = "myreportname.frx"
cTempRepName = FORCEPATH(SYS(2015) + ".frx", SYS(2023))
USE (cReportName) in 0 alias OrigReport				
select OrigReport				
COPY TO ( cTempRepName )
USE in OrigReport
USE ( cTempRepName ) in 0 alias TMPREPORT
select TMPREPORT
goto 3
replace pagebreak with .F.
...
USE
...
REPORT FORM (cTempRepName) ...
ERASE (cTempRepName)
ERASE (FORCEEXT(cTempRepName, "FPT"))
On unrelated note, using absolute position of the record in FRX (GOTO 3) may cause problem in a future because modifying report may change it.

>It is a definitely a different name.
>
>Here is the code:
>
>
>cReportName = "myreportname.frx"
>cTempRepName = "tmprep.frx"
>USE (cReportName) in 0 alias TMPREPORT				
>if file( cTempRepName )
>   erase ( cTempRepName )
>endif
>select TMPREPORT				
>COPY TO ( cTempRepName )
>USE in TMPREPORT
>USE ( cTempRepName ) in 0 alias TMPREPORT
>select TMPREPORT
>goto 3
>replace pagebreak with .F.
>
>
>Do you see anything that I am missing in my code?
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform