Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Acrobat or Word installed?
Message
De
21/07/2004 04:16:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00926474
Message ID:
00926475
Vues:
30
Hi,
Yes. All info stored in registry. Look HKEY_CLASSES_ROOT\.DOC or
HKEY_CLASSES_ROOT\.PDF mapping. The registry key contain name of class which using for this extension. For example for .DOC it might be "Word.Document.8"
Then OpenRegistryKey HKEY_CLASSES_ROOT\Word.Document.8\Shell\Open\Command - it will contain fullpath and exe.
Same for PDF, HKEY_CLASSES_ROOT\.PDF return AcroExch.Document and
HKEY_CLASSES_ROOT\AcroExch.Document\Shell\Open\Command - reference to Actobat.



>Is there a good way to know if Acrobat or Word is installed, and then open the appropriate file? (VFP7)
>
>
>do case
>case Acrobat_is_here
>     open news.pdf
>otherwise
>     open news.doc
>endcase
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform