Link to home
Start Free TrialLog in
Avatar of slakopa
slakopaFlag for Australia

asked on

How do I use VB6 Shell with acrobat reader 8

I have used Acrobat Reader to pop up forms from a VB app populated via an FDF file constructed in the app. The Shell command Shell(<Adobe Reader Path> <FDF Path>) has worked for 5,6 and 7 but doesn't work for 8. Does anyone know why and what the solution is.
sDataFile = "C:\program Files\Directer\Letter\Formdata.fdf"
dAcroWin = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\Acrord32.exe " & sDataFile, vbMaximizedFocus)

Open in new window

Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

What version are you using of VB ?
Have you tried already to use only the file name without the path to Acrord32.exe ?
Avatar of slakopa

ASKER

I'm using VB6. Yes I've tried just calling the FDF that just generates a different error. The error that I do get from 8 is after the reader loads it returns a fiFile Not found message.
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal 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
Avatar of slakopa

ASKER

The solution while using a different technique had a lot to recommend it although it did directly answer the question it solved the problem.
Avatar of slakopa

ASKER

Typo in last. Should have read "did NOT directly answer the question"