Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launching Adobe Acrobat
Message
From
12/01/2005 10:20:49
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
12/01/2005 10:15:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00976402
Message ID:
00976407
Views:
11
Hi Richard,

>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

Run command doesn't permit you to concatenate this way. Try this:
lsScript = "! /n  C:\Program Files\Adobe\Acrobat 5.0\Acrobat\acrobat.exe C:\data\" + Alltrim(str(data.filename)) + ".pdf"
=ExecScript(lsScript)
Bye!
Erick
Força Sempre!
Strength Always!
Previous
Reply
Map
View

Click here to load this message in the networking platform