I know how to access PDFs from a List Box using the Acrobat.exe that’s on the CD (thanks Derek) but how do we access a single PDF file within a folder using the .exe on the CD by the press of a button (no List Box)?
Announcement
Collapse
No announcement yet.
Using Acrobat from CD only
Collapse
X
-
Re: Using Acrobat from CD only
File.Execute
Have the address of the file to execute as the AcroRd.exe and the command line arg as the pdf file.
Don't forget to include "" round the address if it has spaces-
= Derek
["All glory comes from daring to begin" - fortune cookie]
-
Re: Using Acrobat from CD only
It should be easy! This is what I have, it can't find the .pdf.
<IR_ACTIONS_LIST>
<Action name="Execute">
<Type>8</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SrcDir%\Acrobat\AcroRd32.exe</FileName>
<CommandLine>"Catalog\catalog.pdf"</CommandLine>
<WorkingDir/>
<RunMode>0</RunMode>
<WaitForReturn>0</WaitForReturn>
</Action>
</IR_ACTIONS_LIST>
Comment
-
Re: Using Acrobat from CD only
If I'm doing this right it's not working.
<IR_ACTIONS_LIST>
<Action name="Execute">
<Type>8</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SrcDir%\Acrobat\AcroRd32.exe</FileName>
<CommandLine>"%SrcDir%\Catalog\catalog.pdf"</CommandLine>
<WorkingDir>"%SrcDir%</WorkingDir>
<RunMode>0</RunMode>
<WaitForReturn>0</WaitForReturn>
</Action>
</IR_ACTIONS_LIST>
Comment
-
Re: Using Acrobat from CD only
Got it! Here it is.
<IR_ACTIONS_LIST>
<Action name="Execute">
<Type>8</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SrcDir%\Acrobat\AcroRd32.exe</FileName>
<CommandLine>"%SrcDir%\catalog\catalog.pdf"</CommandLine>
<WorkingDir/>
<RunMode>0</RunMode>
<WaitForReturn>0</WaitForReturn>
</Action>
</IR_ACTIONS_LIST>
Thanks for your help Lorne. Remember people... case SEnSiTIvE
Comment
-
Re: Using Acrobat from CD only
Windows isn't case-sensitive at all, so that wasn't it. Your problem was that you had only one quotation mark in the Working directory field:
"%SrcDir%
...was obviously missing a second quote (").
You fixed that by deleting everything in the Working directory field...the fact that you changed "Catalog" to "catalog" is inconsequential.--[[ Indigo Rose Software Developer ]]
Comment
Comment