DDE : HideToolbar

The toolbar of the Acrobat application is hidden.
Only Acrobat can be used. It is not possible to use it with Acrobat Reader.

Syntax

[HideToolbar()]

Returns

true The toolbar is hidden successfully.
false Otherwise.

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

Sample: VBA of Excel

The toolbar of the Acrobat application is hidden.

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

Sub DDE_HideToolbar()
   
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.
    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 toolbar is hidden.
    DDEExecute lChanNo, “[HideToolbar()]”

    ‘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.
  • It is a confirmed operation in Acrobat Pro v7.0.8 and Acrobat Pro v9.1.0.

Environment to confirm the operation

  • WindowsXP + SP3 + WindowsUpdate
  • Adobe Acrobat Pro 7.0.8 + Office Pro 2003
  • Adobe Acrobat Pro 9.1.0 + Office Pro 2003