Viewing a PDF file in a form. For different versions of adobe reader, probably a late binding question.
Posted on 2003-11-06
We are displaying a PDF in a form by using an activeX installed with the Adobe Reader.
Hence we have in the generated form code:-
Me.AxPdf1 = New AxPdfLib.AxPdf
We then manipulate the pdf object as necessary, for example.
AxPdf1.LoadFile(scandoc.inwardDirectory(mDb) & "/" & scandoc.filename)
This all works fine. However we can't guarantee what version of Adobe Reader the pc has on it. Therefore we would normally want to late bind. With something like:-
dim axpdf as object
axpdf1 = createObject("x.y")
but I have no idea what x.y should be.
Can anyone tell me how to make the pdf document appear in the form using this or another method.