DDE : AppShow

The Acrobat application is returned from minimization to former size and the screen is displayed.
Only Acrobat can be used. It is not possible to use it with Acrobat Reader.

Syntax

[AppShow()]

Returns

true The Acrobat application is shown successfully.
false Otherwise.

Notes: The return value cannot be acquired with DDE of VBA of Excel.

Sample: VBA of Excel

The Acrobat application is returned from minimization to former size and the screen is displayed.

  • Please confirm the test by the step execution with F8 key.

Sub DDE_AppShow()
   
Dim lChanNo     As Long   ‘DDE channel number
    Dim strFilePath As String  ‘The full path of PDF file
    ‘A double quotation mark is added for blank starting full path.
    strFilePath = “””C:\PDF\iac_developer_guide.pdf”””
   
   
‘The Acrobat application is Started.
    ‘Attention: It is necessary to change passing by the environment.
    Shell “C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe”
   
   
‘Open of DDE channel
    lChanNo = DDEInitiate(“Acroview”, “Control”)
   
‘Open of PDF file
    DDEExecute lChanNo, “[DocOpen(“ & strFilePath & “)]”    ‘The PDF display is minimized.
    DDEExecute lChanNo, “[AppHide()]”
    ‘The PDF display is returned to former size.
    DDEExecute lChanNo, “[AppShow()]”
   
   
‘All PDF is shut, and the Acrobat application is end.
    ‘If this is not done, the Acrobat process remains.

    DDEExecute lChanNo, “[AppExit()]” 
    ‘The DDE channel is shut.
    DDETerminate lChanNo
End Sub

Remarks

  • It is not possible to use it with Acrobat Reader.

Environment to confirm the operation

  • WindowsXP + SP3 + WindowsUpdate
  • Acrobat Reader 9.1.0 + Office Pro 2003