Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer Information
Message
De
16/12/2005 05:38:59
 
 
À
16/12/2005 05:09:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01078150
Message ID:
01078579
Vues:
10
>Dear Sir,
>
>I include reports in Exe.
>I do not distribute reports to my clients.
>
>Pleaes help

In this case you have only two options.

The simplest solution is to remove the printer information BEFORE you create the EXE. I used to do this using a MODIREP function which I wrote a long time ago, you may have to change it a little to suit your own needs.
Function ModiRep
Lparameters lcFile
IF PCOUNT()>0 and file (fil1+'.frx')
  modi repo (lcFile)
  USE (forceext(lcFile,'.FRX'))
  REPLACE EXPR WITH "", TAG WITH "", TAG2 WITH ""
  USE
ENDIF
Return
You can also create a projecthook to get the same result, as Cathy Pountney told you.

The other option is to create a function which creates a copy of the FRX to a temporary FRX on the PC using FILETOSTR(), removes the printer information from this temprary FRX, create the report using this temporay FRX and then delete the temporary FRX.

BTW, I suggest that you update to VFP9 (VFP8) where you have the option NOT to save the printer information automatically into the FRX.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform