>Hi Dragan,
>
>There'are a few problems with your code:
>
>1. The COPY commnand works with tables only
>2. If you meant COPY FILE command than it will not work either because it cannot see files included into EXE
>
>Including BMP into EXE wouldn't work in this case because user has access to reports and can remove BMP from the reports all together or point to some other BMP.
Once I try something out of my head, without testing, and of course it won't work.
So the alternate solution would be to store the image in a binary memo in a table which would be included in the project, and copy it out of there, run the report, delete the bitmap.
And I was under an impression that the reports were included in the project. If they aren't... I really don't know how to prevent this.
>>Keep the bitmap under a different name inside the project (i.e. rename, then include). Each time before you run a report, copy it out to the original filename.
>>
>>Let's say you have Image.bmp. Create a copy named image_copy.bmp and include it in the project. Then
>>
>>
copy image_copy.bmp to image.bmp
>>report form ... etc
>>
>>So whatever anyone may do to the bitmap, you will always overwrite.