>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.