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, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

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

XChange View with MS-Access VBA

Post by mpwfg »

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: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: XChange View with MS-Access VBA

Post by Tracker Supp-Stefan »

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