(Mike Mitchell)
10/25/2011 10:56:00 AM
On Tue, 25 Oct 2011 11:36:19 +0100, Deanna Earley
<dee.earley@icode.co.uk> wrote:
>On 25/10/2011 11:18, MM wrote:
>> In one of your code snippets on the web you have:
>>
><SNIP>
>>
>> in order to load a PDF into a VB6 form.
>>
>> Where did you find the "magic words" AcroPDF.PDF.1, PDF.PdfCtrl.6,
>> PDF.PdfCtrl.5 etc, and where can I find the one for using Reader 8,
>> Reader 9, and Reader X?
>
>Those are the ProgIDs for each component that are used to find its
>details. You can see these in the registry under HKEY_CLASSES_ROOT hive.
>
>Note that each is version specific so using "PDF.PdfCtrl" would normally
>get you the latest version.
>You will need to add a reference to a given DLL/OCX, or use OLEView or
>similar to determine what methods are supported.
I've actually just discovered an AcroPDF.DLL ActiveX control that was
installed with Reader 9. Dunno yet whether it's supported unchanged on
Reader X. It's only descirbed, as far as I can tell, in the VB.Net
stuff in the Adobe SDK, but it works with VB6 too! This may be a
better approach than using Controls.Add("AcroPDF.PDF.1", "PDF") etc.
MM