I must have a different version of registry.prg...getEnumKeys() is not a part of the one I have.
>Ok, would this work?
>
>#include registry.h
>clear
>oRegistry= newOBJECT("Registry","Registry.prg")
>
>
>lnVals=oRegistry.GetEnumKeys(@taVals,HKEY_LOCAL_MACHINE, ;
> "Software\Adobe\Acrobat Distiller")
>
>? "*** Subkeys***"
>FOR x=1 to lnVals
> ? taVals[x]
>ENDFOR
>
>It returns 4.0 on my system. What does it return on yours?
>
>Seems to work on few systems, I've tried.
>
>It's not a bullet proof solution, but it's working...
>
>>Hi Steve,
>>
>>I was trying to implement Rick's class. However, on my machine wwPDF40 works, but wwPDF50 doesn't and vc vs on my manager's machine. So, the problem is to determine Adobe Acrobat version, if I want to go this route...
>>
>>Any suggestions?
>>
>>>The registry keys are here on my machine:
>>>
>>>HKEY_CURRENT_USER\Software\ADOBE\Acrobat PDFWriter
>>>
>>>Do you have any entries in that location?
>>>
>>>If the file created by createPDF() is a valid PDF file, Yuri may have given you the simplest solution.
>>>
>>>
>>>>
>>>>Let's start with the basics. I open registry (typed regedit in Run command), then ran a Search on registry for bExecViewer. It searches for some time, but comes with nothing. So, I guess, I don't have such key in Registry.
>>>>
>>>
>>>
>>>>I don't like to mess with systems files and I'm not yet sure, which file I have to check. I'll try anyway...
>>>>
>>>>Just checked with the boss, Rick's demo works fine, CreatePDF doesn't work. So, I'm going to try to make a switch. It would not be easy...
Steve Gibson