Page 1 of 1

XChange View with MS-Access VBA

Posted: Mon Feb 05, 2018 11:40 am
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

Re: XChange View with MS-Access VBA

Posted: Mon Feb 05, 2018 3:02 pm
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