PDF Display

Discussions about document viewing.
Post Reply
uccu
Posts: 10
Joined: Tue Jun 24, 2008 8:31 am

PDF Display

Post by 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

User avatar
Loïc
Site Admin
Posts: 5726
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PDF Display

Post by 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

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

Re: PDF Display

Post by uccu » Tue Jan 19, 2010 6:32 pm

Loïc

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

UCCU

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest