PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

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

 
mpwfg
User
Topic Author
Posts: 1
Joined: Mon Feb 05, 2018 10:58 am

XChange View with MS-Access VBA

Mon Feb 05, 2018 11:40 am

Hallo,
i use the PDF-XChange Viewer in MS-Access with this Code
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)
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: 12737
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: XChange View with MS-Access VBA

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

Who is online

Users browsing this forum: No registered users and 1 guest