PDF Viewer SDK ActiveX

PDF Viewer SDK ActiveX

Platform : Windows 11, Windows 10, Windows 8, Vista, XP

It is PDF Viewer SDK, fast open PDF, support print a PDF, searching the text with C , C#, VB.Net , VB6, Delphi, Vfp, MS Access.

Popular Solution Go   Back

MS Access 2016 - How to view TIFF

Step 1: To install the PDF Viewer SDK ActiveX, begin by launching the setup file (http://www.viscomsoft.com/demo/pdfviewersetup.exe). Select the desired installation folder for the
PDF Viewer SDK ActiveX and continue with the installation on your development computer.

Step 2: Launch MS Access 2016. select Blank database.

Step 3: Select Create Tab, select Form Design.

Step 4: In Form, Select ActiveX Control. Select PDFViewer Control.


Step 5: Resize the PDF Viewer Control on form and add the button form. 



Step 6: double click command1 button, In code editor , then  Select Tools - References... , select  Microsoft Office 16.0 Object Library, click OK button. 





Step 7: In command 1 click event, add the following
Private Sub Command1_Click()
Dim dlg As FileDialog
Dim bResult As Boolean
Dim obj As PDFViewer
Set obj = PDFViewer0.Object
Set dlg = Application.FileDialog(msoFileDialogOpen)
dlg.Filters.Clear
dlg.Filters.Add "TIFF", "*.tif"
bResult = dlg.Show
If bResult Then
    
    strPDFFile = dlg.SelectedItems(1)
    
   obj.LoadPDFFile strPDFFile
    
  
End If
End Sub