Code:
Private Declare Function FindExecutable Lib "shell32.dll" Alias "FindExecutableA" (ByVal lpFile As String, ByVal lpDirectory As String, ByVal lpResult As String) As Long
I have a program that prints *.pdf files using DDE and must open Adobe Reader to work.
The program works on the XP machines but fails on the Windows 7's
It uses the "FindeExecutable" to locate "AcroRd32.exe"
AcroRd32.exe is located in the same location under both operating ("C:\Program Files\Adobe
Reader 9.0\AcroRd32.exe") systems but on the Windows 7 machines the Error code states that it can not find the file.
I've been searching for a fix but have not found anything of this nature. It appears to be a Windows 7 problem.
The files are viewable using ShellExecute via the Reader
Any ideas?