Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent Users
Message
From
27/11/2004 15:01:11
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00964953
Message ID:
00965134
Views:
19
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform