Loading...

PDF Display

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

PDF Display

Postby uccu » Thu Jan 07, 2010 12:17 am

I am using the code below to display a PDF file (vb6). This works perfectly on my development machine but when I run it on a production machine it does not display the PDF file. There is a lot more to the program, I am just showing the display sub.

Code: Select all
Public Sub DisplayPDF(FileName)
    Dim Temp As String
    Dim tmp As Single
   
    tmp = 33 ' used to set the Zoom size
   
    frmSign.Picture1.Enabled = False
    frmSign.GdViewer1.Enabled = True
    frmSign.GdViewer1.setZoom (tmp)
    frmSign.GdViewer1.DisplayFromPdfFile (FileName)
   
    Select Case MsgBox("Correct Form ", vbYesNo)
        Case vbYes
            strPDFdis = True
        Case Else
            strPDFdis = False
    End Select
   
   
    frmSign.Picture1.Enabled = True
    frmSign.GdViewer1.Enabled = False

Exit Sub

Thanks

Rich
uccu
 
Posts: 10
Joined: Tue Jun 24, 2008 8:31 am

Re: PDF Display

Postby Loïc » Tue Jan 19, 2010 1:37 pm

Hi,

your are probably missing to redistribute the needed files. Please have a look on the first page of the reference guide to get information about these files.

With best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PDF Display

Postby uccu » Tue Jan 19, 2010 6:32 pm

Loïc

Thanks you are right on I missed the gdpdfplug.dll .

UCCU
uccu
 
Posts: 10
Joined: Tue Jun 24, 2008 8:31 am


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest