XChange View with MS-Access VBA

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
Posts: 1
Joined: Mon Feb 05, 2018 10:58 am

XChange View with MS-Access VBA

Post by mpwfg » Mon Feb 05, 2018 11:40 am

i use the PDF-XChange Viewer in MS-Access with this Code

Code: Select all

Prg = C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe
        Path= C:\Users\dirA\dirB\dirC
        PDF_File_Name = Path & "\" & File_Name & ".pdf"
        PDF_Call= Prg & " " & PDF_File_Name
        If Len(VBA.Dir(PDF_File_Name)) = 0 Then
            MsgBox "File do not exist"
            'Shell (PDF_Call)
        End If
How can I use XChange Viewer like this (for ADOBE)

Code: Select all

DoCmd.OpenForm "frm_PDF_View"
        Forms!frm_PDF_View.AcroPDF1.Object.src = PDF_File_Name
PDF-XChange Viewer Controls v1.0 Type Library
is installed.
(Sorry, my English is not the best)
Thanks for help

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14057
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: XChange View with MS-Access VBA

Post by Tracker Supp-Stefan » Mon Feb 05, 2018 3:02 pm

Hello Manfred,

Not sure if you will be able to do this with VBA - but please download the Viewer SDK packages - and you will find examples in several programming languages illustrating how you can access and use our Viewer AX control.


Post Reply