Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access Graphics on different PCs
Message
From
18/05/2001 15:26:37
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
18/05/2001 12:20:08
Edward See
Magicalogic Consultancy System
Quezon, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00508218
Message ID:
00508945
Views:
25
>\ut\serverside.exe has images.dbf with imagepath.field.value="f:\ut\images\camerondiaz.jpg"
>
>clientside.exe form.picture='f:\ut\images\camerondiaz.jpg'
>if clientside.exe desktop.shortcut.icon.properties.targetdirectory='f:\ut'
> jpg displays on form well where server is map as 'f:\'
>if clientside.exe shortcut.icon.properties.targetdirectory='\\server\ut'
> jpg do not display.
>
>when thisform.image1.picture=images.dbf.imagepath.field.value
>
>i use dot notation to sort of tie words into hierarchical class objects as what recent programming languages like C#, Java & VB.NET seems to be gearing towards.
>
>appreciate very much your attention and efforts :)

The problem seems to be in the path in images.dbf which mentions f: drive. If you run it off an UNC and don't have the F: drive properly mapped, of course it won't be able to find the image. There are several ways out of this:
- replace all the image paths in images.dbf with UNC paths
- replace them on the fly, i.e.
cPath=strtran(images.path, 'F:', '\\server\share')
- replace them with a path relative to the path of the table itself, using sys(2014) function
cLocation=fullpath(justpath(dbf()))
replace all image.path with sys(2014, image.path, cLocation)
but that will work only if they're on the same drive. Do this while you do have the drive mapped.

>edward from philippines where political elections are violent.

Yugoslavia has had its share of interesting times. Finally enjoying being bored here :)

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