The specified PDF document is opened, and displayed. Two or more PDF files have already displayed to open in the front row in case of being.
This DDE message is not added to the list to be able to manipulate the PDF document by using the DDE message. In that case, please use DocOpen.
|The full path of PDF file|
|true||The PDF document is opened successfully|
Notes: The return value cannot be acquired with DDE of VBA of Excel.
Sample: VBA of Excel
The PDF document is opened.
- Please confirm the test by the step execution with F8 key.
Dim lChanNo As Long ‘DDE channel number
‘The Acrobat application is Started.
Shell “C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe”
‘Open of DDE channel
lChanNo = DDEInitiate(“Acroview”, “Control”)
‘E:\Test01.pdf file is opened and displayed.
DDEExecute lChanNo, “[FileOpen(E:\Test01.pdf)]”
‘E:\Test02.pdf file is opened and displayed.
DDEExecute lChanNo, “[FileOpen(E:\Test02.pdf)]”
‘The Acrobat applicaton is ended..
‘If this is not done, the Acrobat process remains.
DDEExecute lChanNo, “[AppExit()]”
‘The DDE channel is shut.
- Especially, it is not.
Environment to confirm the operation
- WindowsXP + SP2 + γγ«WindowsUpdate
Adobe Acrobat 7.0.8 Pro + Office Pro 2003
- WindowsXP + SP3 + γγ«WindowsUpdate
Adobe Acrobat Pro 8.1.4 + Office Pro 2003
Adobe Acrobat Reader 9.1.0 + Office Pro 2003