Image Control 'caching' in report
Image Control 'caching' in report
(OP)
I have a one page report, there is an image on it, linked to a file (third option - expression or variable name) which changes (mostly) each time the report is run.
It's a signature, depending on who signed the report, the contents of the file changes or the file may not be there (not signed yet).
After running once, the report seems to cache the contents of the file and not reread it so, until I exit the app and go back in the signature does not change - even
though I can see the contents of the fie do.
I have cooked up a work around, using a unique file name every time I run the report, but surely that shouldn't be necessary... am I missing something?
It's a signature, depending on who signed the report, the contents of the file changes or the file may not be there (not signed yet).
After running once, the report seems to cache the contents of the file and not reread it so, until I exit the app and go back in the signature does not change - even
though I can see the contents of the fie do.
I have cooked up a work around, using a unique file name every time I run the report, but surely that shouldn't be necessary... am I missing something?
Regards
Griff
Keep ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
RE: Image Control 'caching' in report
If you execute CEAR RESOURCES [Filename] before running the report, that should fix it.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: Image Control 'caching' in report
I will take a look at that
Regards
ing
Griff
Keep
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
RE: Image Control 'caching' in report
Regards
ing
Griff
Keep
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
RE: Image Control 'caching' in report
Thanks Mike.
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."
RE: Image Control 'caching' in report
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: Image Control 'caching' in report
So I can't reproduce that behavior, but good to know a CLEAR RESOURCE filename works in that case and should be done as a precaution.
For the reason of encapsulation I'd then go for a control source type variable and expression, as you have, set the control source to the variable name (e.g. lcImg) and create the variable as report variable holding the file name (as Value to store, Initial value empty string) and in the "on entry" property of the band printing the image put:
CODE
Bye, Olaf.
Olaf Doschke Software Engineering
https://www.doschke.name