From: Kahuna on
Hi Folks, this has been discussed in this forum before I know, but I am
still struggling to get to grips with the best method of showing a PDF in my
VB Form!

The Acrobat SDK seems unwieldy to say the least and the ActiveX control they
deploy in Acrobat6 seems not to work with Acrobat7 (apologies if I've
misinterpreted that).

Has anyone done this before (actually shown the PDF in a from control?) I
don't want to simply display the PDF in Acrobat outside of my app, so Shell
is not an option.

TIA

--
Kahuna
------------


From: Norm Cook on
Well, I have version 7.0 installed. In the VB toolbox I find
Adobe Acrobat 7.0 Browser Control Type Library 1.0 and on my
system it is located at:
C:\Program Files\Adobe\Acrobat 7.0\ActiveX\acropdf.dll
(The file is actually an activex dll, but it loads as a control)

Show a PDF on a form:
AcroPDF1.LoadFile "c:\somefolder\somepdf.pdf"

"Kahuna" <none(a)gonewest.com> wrote in message
news:esBs99urFHA.3092(a)TK2MSFTNGP10.phx.gbl...
> Hi Folks, this has been discussed in this forum before I know, but I am
> still struggling to get to grips with the best method of showing a PDF in
my
> VB Form!
>
> The Acrobat SDK seems unwieldy to say the least and the ActiveX control
they
> deploy in Acrobat6 seems not to work with Acrobat7 (apologies if I've
> misinterpreted that).
>
> Has anyone done this before (actually shown the PDF in a from control?) I
> don't want to simply display the PDF in Acrobat outside of my app, so
Shell
> is not an option.
>
> TIA
>
> --
> Kahuna
> ------------
>
>


From: Patrick Garceau on
Simple....

In your form.....

Private mobjPDF As AcroPDFLibCtl.AcroPDF

Sub Form_Load()
Set mobjPDF = Controls.Add("AcroPDF.PDF.1", "Test") 'Test is the
name of the control...
mobjPDF.LoadFile DrawingName
End Sub

Private Sub Form_Unload(Cancel As Integer)
mobjPDF.LoadFile "" 'The pdf activex will sometimes crash if
there is still a displayed file in it
End Sub

The control to use is AcroPDF.dll (Version 7)
The reason to create the control at load is that the control won't stick to
your form when compiling
Since the control is created at runtime, the compile option "Remove
Information about unused ActiveX" must be unchecked


Have fun !

Patrick



"Kahuna" <none(a)gonewest.com> wrote in message
news:esBs99urFHA.3092(a)TK2MSFTNGP10.phx.gbl...
> Hi Folks, this has been discussed in this forum before I know, but I am
> still struggling to get to grips with the best method of showing a PDF in
my
> VB Form!
>
> The Acrobat SDK seems unwieldy to say the least and the ActiveX control
they
> deploy in Acrobat6 seems not to work with Acrobat7 (apologies if I've
> misinterpreted that).
>
> Has anyone done this before (actually shown the PDF in a from control?) I
> don't want to simply display the PDF in Acrobat outside of my app, so
Shell
> is not an option.
>
> TIA
>
> --
> Kahuna
> ------------
>
>


From: Kahuna on
Wow - cool

Thanks Guys - exactly what I was looking for.

Cheers

--
Kahuna
------------
"Patrick Garceau" <garceaup(a)microbusinfo.com> wrote in message
news:Ojp5TUvrFHA.3792(a)TK2MSFTNGP10.phx.gbl...
> Simple....
>
> In your form.....
>
> Private mobjPDF As AcroPDFLibCtl.AcroPDF
>
> Sub Form_Load()
> Set mobjPDF = Controls.Add("AcroPDF.PDF.1", "Test") 'Test is the
> name of the control...
> mobjPDF.LoadFile DrawingName
> End Sub
>
> Private Sub Form_Unload(Cancel As Integer)
> mobjPDF.LoadFile "" 'The pdf activex will sometimes crash if
> there is still a displayed file in it
> End Sub
>
> The control to use is AcroPDF.dll (Version 7)
> The reason to create the control at load is that the control won't stick
> to
> your form when compiling
> Since the control is created at runtime, the compile option "Remove
> Information about unused ActiveX" must be unchecked
>
>
> Have fun !
>
> Patrick
>
>
>
> "Kahuna" <none(a)gonewest.com> wrote in message
> news:esBs99urFHA.3092(a)TK2MSFTNGP10.phx.gbl...
>> Hi Folks, this has been discussed in this forum before I know, but I am
>> still struggling to get to grips with the best method of showing a PDF in
> my
>> VB Form!
>>
>> The Acrobat SDK seems unwieldy to say the least and the ActiveX control
> they
>> deploy in Acrobat6 seems not to work with Acrobat7 (apologies if I've
>> misinterpreted that).
>>
>> Has anyone done this before (actually shown the PDF in a from control?) I
>> don't want to simply display the PDF in Acrobat outside of my app, so
> Shell
>> is not an option.
>>
>> TIA
>>
>> --
>> Kahuna
>> ------------
>>
>>
>
>