Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole error
Message
 
 
À
22/03/2010 07:20:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01456028
Message ID:
01456037
Vues:
74
This message has been marked as the solution to the initial question of the thread.
It would happen for folders/file names with spaces. You'll have to enclose the file name in double quotes to fix it
oShell 	= CREATEOBJECT("WScript.Shell")
lcFileName = GETFILE("pdf")
* Enclouse into double quotes to avoid problem with spaces in file name
lcFileName = ["] + lcFileName + ["]
oShell.Run(lcFileName,1)
>Yes I retrieve the filename by Getfile() and the file can be open without problem outside VFP
>It seems to give me no problem with Jpg files while I got into problems when trying to open Xls or Pdf files
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform