Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display file
Message
From
13/11/2008 13:39:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/11/2008 08:09:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01361598
Message ID:
01361743
Views:
18
>Hi,
>
>I have the following problem:
>
>I store a filename in an memo. This could be a file of any type, just as the user wishes.
>
>Now the user wants me to give a preview of this file in VFP (if possible).
>
>What object should I use?
>
>Agnes

Let's put it this way. Do you know of any program that can do this? Show about any arbitrary file in a preview, I mean.

I think that you basically have the following options, the most important of which have already been suggested:

1. Use ShellExecute() or a wrapper. This will give you the greatest flexibility, but you won't have control over user actions once the external program is opened.

2. Use the Web browser control, to open many different file types.

3. Continue searching for other controls, that offer you more options.

4. Possibly use a combination of controls - e.g., if you detect a Word or Excel document, dynamically activate a control specifically designed for that file type.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform