I think Pranav is right. baOpenFile(fileName, openMode) funciton is a better
choice, because the user may have another application for viewing PDF files
(like GhostViewer or something) and in that case he/she will have an error
message, though an appropriate application is installed. Also, if the
application is installed not quite correct, it is possible that the file
extension is not associated with it. Using baFileOpen() will allow to
associate the file/application manually, by opening the standard Windows
dialog box.

Araik
Internet Consulting Group
Moscow, Russia

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Pranav Negandhi
> Sent: Monday, January 22, 2001 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: <lingo-l> Urgent help......problem in opening a pdf file
>
>
> Hi,
> I haven't got BudAPI, but from what I gather from your code, it
> seems you have a lot of redundant stuff running in there. I might
> be wrong, but here's a shot
> Try this out:
>
> on mouseUp me
> if baFileExists("C:\Acrobat3\Reader\acrord32.exe") then
> open the moviepath&"pdf/a.pdf" with the "C:\Acrobat3\Reader\acrord32.exe"
> else
> alert ("Please install Acrobat in C drive")
> end if
> end mouseUp me
>
> Or it might be that your PDF or Acrobat installation might be
> corrupted. If I remember, BudAPI also has some function that
> opens the file directly with the associated program. And that
> would be a better bet. All users may not install Acrobat in the
> same place on their machines. If there is no such command, you
> can still use Ramesh's code to open the file with the correct
> path to Acrobat. All the best.
>
> Regards,
> Pranav
>
>
> _____________________________________________________
> Chat with your friends as soon as they come online. Get Rediff Bol at
> http://bol.rediff.com
>
>
>
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
>
>



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to