Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching Adobe Acrobat
Message
De
12/01/2005 10:31:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/01/2005 10:15:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00976402
Message ID:
00976415
Vues:
9
>The name of an Adobe Acrobat file (withouth the extension) is recorded in the field DATA.FILENAME data type numeric.
>I want to launch Acrobat with the file open in Acrobat. If I know the filename the code that works is:
>! /n C:\Program Files\Adobe\Acrobat 5.0\Acrobat\acrobat.exe C:\data\testreport.pdf
>
>Why doesn't this work?:
>! /n C:\Program Files\Adobe\Acrobat 5.0\Acrobat\acrobat.exe 'C:\data\'+str(data.filename)+'.pdf'
>
>Acrobat launches, but tells me the file is not found.
>Thanks

It doesn't work because of the spaces. Use quotation marks around the complete path + filename.
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform