XChange View with MS-Access VBA

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

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

Post Reply
mpwfg
User
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

Hallo,
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"
        Else
            '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
The
PDF-XChange Viewer Controls v1.0 Type Library
is installed.
(Sorry, my English is not the best)
Thanks for help
Manfred

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

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.

Regards,
Stefan

Post Reply