Category Archives: Display operation

DDE : ShowToolbar

The toolbar of the Acrobat application is displayed.Only Acrobat can be used. It is not possible to use it with Acrobat Reader. Syntax [ShowToolbar()] Returns true The toolbar is shown 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 displayed. Please confirm the test by the step execution with F8 key. Sub DDE_ShowToolbar()  Dim lChanNo As Long ‘DDE channel number  ‘A double quotation mark is added for blank starting full path.  Const CON_PDF_PATH = “””E:\Test01.pdf””” ‘The Acrobat application is Started.  Shell “C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe”  ‘Open of DDE channel  lChanNo = DDEInitiate(“Acroview”, “Control”) … Continue reading DDE : ShowToolbar

DDE : MenuitemExecute

The menu entry where the Acrobat application was specified is executed.Only Acrobat can be used. It is not possible to use it with Acrobat Reader. Syntax [MenuitemExecute(char* menuItemName)] Returns It is not. Argument menuItemName[char*] Menu entry that exists in ‘Acrobat Toolbar and Toolbar Button Names list‘. Sample: VBA of Excel The toolbar of the Acrobat application is hidden. Acrobat Toolbar and Toolbar Button Names list Please confirm the test by the step execution with F8 key. Sub DDE_MenuitemExecute()    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 = “””E:\Test01.pdf”””        ‘The Acrobat application … Continue reading DDE : MenuitemExecute

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 … Continue reading DDE : HideToolbar

DDE : CloseAllDocs

All open PDF documents are shut.It is possible to use it by both Acrobat and Acrobat Reader. Syntax [CloseAllDocs()] Returns true The all documents are closed successfully. false Otherwise. Notes: The return value cannot be acquired with DDE of VBA of Excel. Sample: VBA of Excel All open PDF documents are shut. Please confirm the test by the step execution with F8 key. Sub DDE_CloseAllDocs()    Dim lChanNo     As Long ‘DDE channel number    Dim strFilePath As String ‘The full path of PDF file ‘    Shell “C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe”    Shell “C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe”    ‘A double quotation mark is added for blank starting full path.    strFilePath = “””E:\iac_developer_guide.pdf”””    ‘Open of DDE channel    lChanNo = DDEInitiate(“Acroview”, … Continue reading DDE : CloseAllDocs

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 … Continue reading DDE : AppShow

DDE : AppHide

The Acrobat application is minimized. However, it is not displayed in the taskbar. It only remains as a process in the memory. It is possible to use it at any time.Only Acrobat can be used. It is not possible to use it with Acrobat Reader. Syntax [AppHide()] Returns true: the Acrobat application is hidden successfully. false: otherwise. Notes: The return value cannot be acquired with DDE of VBA of Excel. Sample: VBA of Excel The Acrobat application is minimized. Please confirm the test by the step execution with F8 key. Sub DDE_AppHide()    Dim lChanNo     As Long     ‘DDE channel number    Dim strFilePath As String    ‘The full path of PDF file        ‘The Acrobat … Continue reading DDE : AppHide

DDE : AppExit

All open PDF files are shut. Afterwards, Acrobat (Or, Acrobat Reader) application is ended.It is possible to use it by both Acrobat and Acrobat Reader. Syntax [AppExit()] Returns true Application is exitted successfully. false Otherwise. Notes: The return value cannot be acquired with DDE of VBA of Excel.   Sample: VBA of Excel   When the PDF document is displayed, Acrobat (Or, Acrobat Reader) application is ended.   Please confirm the test by the step execution with F8 key.  Sub DDE_AppExit()    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 = “””E:\iac_developer_guide.pdf”””    … Continue reading DDE : AppExit