I am updating an application we offer our clients that allows them to browse test results we send them. We have recently begun exporting some of our reports in PDF format. I want this application to open Reader along with the file. I have developed code to do this provided I know the full path and the name of the program. The problem is, I don't know what version of Reader any of our clients are using. Right now I am doing this:
llAcrobat = .F.
IF FILE(default path to Acrobat 5.0)
lcApp = default path to Acrobat 5.0
llAcrobat = .T.
ENDIF
IF FILE(default path to Acrobat 4.0)
lcApp = default path to Acrobat 4.0
llAcrobat = .T.
ENDIF
IF llAcrobat
Code to display PDF
ENDIF
Obviously, I don't have all the paths to each version. Is there an easier way to do this, or how can I get as many paths as possible?
I should add, most of these clients aren't too computer literate. Just telling them they need to upgrade to 5.0 will just frustrate some of them and they won't use the app at all.
Thanks in Advance,
Steve
llAcrobat = .F.
IF FILE(default path to Acrobat 5.0)
lcApp = default path to Acrobat 5.0
llAcrobat = .T.
ENDIF
IF FILE(default path to Acrobat 4.0)
lcApp = default path to Acrobat 4.0
llAcrobat = .T.
ENDIF
IF llAcrobat
Code to display PDF
ENDIF
Obviously, I don't have all the paths to each version. Is there an easier way to do this, or how can I get as many paths as possible?
I should add, most of these clients aren't too computer literate. Just telling them they need to upgrade to 5.0 will just frustrate some of them and they won't use the app at all.
Thanks in Advance,
Steve