Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

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.
 
0
clintonJ
Asked:
clintonJ
1 Solution
 
EDDYKTCommented:
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?
0
 
Karl Heinz KremerCommented:
Are you using Acrobat or Reader? Your path points to Reader, but your question suggests that you are running Acrobat (the full version). Are you sure that Reader 8 is installed? The path to Acrobat would be
C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now