Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adobe won't open a file with a blank in the filename
Message
 
 
À
02/07/2008 15:36:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01328393
Message ID:
01328396
Vues:
11
You have to enclose PDF name in double quotes.
No need to specify the program name if you want to use default PDF viewer
oShell.run(["] + XX + ["],0,.t.)
>I'm trying to open Adobe like this. I need it to wait until I close the PDF manually so that it can return to my VFP on next line.
>oShell = createobject("WScript.shell")
>oShell.run ('"c:\program files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" &XX',0,.t.)
>
>Where XX = a valid path + a PDF filename (F:\scans\ABC NETWORK.PDF)
>This works fine if there are no spaces in the file (XX), but I need to work either way.
>What am I missing?? please.
>thanks.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform