Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer Information
Message
From
16/12/2005 05:38:59
 
 
To
16/12/2005 05:09:28
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01078150
Message ID:
01078579
Views:
11
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform