I have a report (VFP9) which contains an image (actually 12 of them) whose actual content is set at run time depending on what language the user chooses to run the report in. So, for example, if the language is Japanese the image is japan01.tif; if Korean it's korea01.tif, etc. The "Control source type" is set to "Expression or variable name" and the variable name is img01.
So the run time code right before calling the report is something like:
DO CASE
CASE languagex = 'japanese'
img01 = 'c:\amps\data\japan01.tif'
CASE languagex = 'korean'
img01 = 'c:\amps\data\korea01.tif'
.
.
.
ENDCASE
I am explicitly including these images in the project. However when running from an exe and the user chooses Preview or Print from the app's report screen the image is not found. If he chooses PDF (I'm using XFRX) the image is found and the report runs fine.
DEFAULT and PATH are set once in the main program and never explicitly changed.
Seems that img01 needs to be set differently, but to what?
Thanks!
Jim
So the run time code right before calling the report is something like:
DO CASE
CASE languagex = 'japanese'
img01 = 'c:\amps\data\japan01.tif'
CASE languagex = 'korean'
img01 = 'c:\amps\data\korea01.tif'
.
.
.
ENDCASE
I am explicitly including these images in the project. However when running from an exe and the user chooses Preview or Print from the app's report screen the image is not found. If he chooses PDF (I'm using XFRX) the image is found and the report runs fine.
DEFAULT and PATH are set once in the main program and never explicitly changed.
Seems that img01 needs to be set differently, but to what?
Thanks!
Jim