Link to home
Start Free TrialLog in
Avatar of clintonJ
clintonJ

asked on

Opening Adobe Acrobat 8.0 from VB code

I have a VB 6.0 app.  I can successfully open Adobe Acrobat 7.0 from my VB code, with the following line:
pat1 = "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe " ', vbNormalFocus '
pat2 = FolderFile    
pa = pat1 & pat2
Shell pa, vbMaximizedFocus

However, I cannot open Adobe Acrobat 8.0 from VB code, even though I am using the same line:
pat1 = "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe " ', vbNormalFocus '
pat2 = FolderFile    
pa = pat1 & pat2
Shell pa, vbMaximizedFocus

Thanks ahead of time.
 
Avatar of EDDYKT
EDDYKT
Flag of Canada image

can you start the adobe by

pat1 = "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe " ', vbNormalFocus '
pat2 = FolderFile    
pa = pat1 & pat2
Shell pat1, vbMaximizedFocus   ' change this line

what is the value of pa?
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial