John,
What I mean by "copy it out". You can FILETOSTR(STRTOFILE()) to copy a known Included file out of the currently running EXE to the physical drive.
Otherwise, you can just distribute the external files.
Tracy
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of John Weller Sent: Monday, August 07, 2017 2:54 PM To: profox@leafe.com Subject: RE: Report Anomaly
Hi Tracy,
Not sure what you mean by *copy it out*. For development purposes I put everything in a set of sub-folders within a single main folder. The data is in one sub-folder and the source code, including the image, is in another sub-folder. Both the app and the exe sit next to one another inside the main folder so the path to the image is identical.
John
John Weller 01380 723235 07976 393631
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Tracy Pearson Sent: 07 August 2017 19:09 To: profoxtech@leafe.com Subject: RE: Report Anomaly
John,
Is the image in a relative path to the report. The image needs to be on the disk, not in the executable. *(unless you
copy
it out)*
HTH, Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of John Weller Sent: Monday, August 07, 2017 2:00 PM To: profoxtech@leafe.com Subject: Report Anomaly
I have written a membership system for a local organisation. I decided to
add
a facility to email a membership card to a member instead of posting it. I created a report which consists of a jpg image containing the background and base text, a scan of the original blank card, with 3 fields
superimposed to
hold name, membership no and expiry date. The image is in the page header section as it uses global variables for the data; I tried putting it in
the body
and using a single record cursor but the system insisted on producing
three
cards on the same sheet for some reason. The card is produced as a PDF using FoxyPreviewer and sent as an attachment. When I run it from VFP as an app it works perfectly but when I run it from the exe the report
contains
the data but not the background image.
I'm baffled! Any suggestions would be gratefully received :-)
John
John Weller 01380 723235 07976 393631
[excessive quoting removed by server]