Or you could use the API function to find the correct program and show the document in this program:
Declare Sub APILaunchURL(URLFileName As String) Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ( ByVal hwnd As Integer, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Integer) As Integer '***************************************************************** Sub APILaunchURL(URLFileName As String) Dim sParams, nRc, ihwnd As Integer, sOp, sFile, sDir As String, iShowCmd, Null As Integer OnError Goto ErrHandler ihwnd = WindowInfo(WIN_MAPINFO, WIN_INFO_WND) sOp = "open" sFile = URLFileName sParams = "" + Chr$(0) sDir = ApplicationDirectory$() iShowCmd = 0 Null = 0 nRc = ShellExecute(ihwnd, sOp, sFile, Null, sDir, iShowCmd) If nRc <= 32 Then Note "Unable to launch" + nRc End If Exit Sub '------------------- ErrHandler: Resume Next End Sub HTH, Peter Horsbøll Møller GIS Developer COWI A/S Rugårdsvej 55 DK 5000 Odense C Tel +45 6313 5013 Direct +45 6313 5008 Mobil +45 2270 4308 Fax +45 6313 5090 Kampsax blev i juni 2002 overtaget af COWI. I forbindelse med den igangværende integrationsprocess udskiftes vores Kampsax e-mail adresser med COWI e-mail adresser.Hjemmesideadresser forbliver uændrede > -----Original Message----- > From: Thomas Brix Lyng [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 9:42 AM > To: 'Goraya, Ken' > Cc: '[EMAIL PROTECTED]' > Subject: RE: MI-L open a pdf document > > > Hi Ken > > You´ll have to use the "Run Program" Command like this: > > Run Program "C:\program files\.....\adobe\AcroRd32.exe MyPDFfile.PDF" > > Maybee you can omit the path and executable and just specify > your PDF file. Try it out. > > Kind Regards > > Thomas Brix Lyng > Frederikshavn Municipal Administration > Denmark > > > > -----Oprindelig meddelelse----- > Fra: Goraya, Ken [mailto:[EMAIL PROTECTED]] > Sendt: 13. december 2002 08:18 > Til: '[EMAIL PROTECTED]' > Emne: MI-L open a pdf document > > > Hi > > Can some body point me in the right direction - How can I > open a pdf document or jpg image using mapbasic? > > Regards > Ken > > > ************************************************************** > *********** > Any views expressed in this Communication are those of the > individual sender. Council will only accept responsibility for > information contained under official letterhead and duly signed > by, or on behalf of, the Chief Executive Officer. > > This E-mail and any accompanying file attachments, are confidential > to the addressee and may also be privileged, and neither > confidentiality > nor privilege is waived lost or destroyed by virtue of it > being transmitted to an incorrect addressee. Unauthorised use > of the contents is > therefore strictly prohibited. If you are not the intended > recipient, or > the person responsible for delivering this message to the intended > recipient, please notify Logan City Council immediately and destroy > any copies of the original message. > > Any information contained in the E-mail that has been extracted from > Council's records is believed to be accurate, but no > responsibility is > assumed for any error or omission. > > Council accepts no responsibility for the content of any E-mail which > is sent by an employee which is of a personal nature or which > represents the personal view of the sender. > > While all care is taken, Council cannot guarantee that this E-mail > message and any accompanying file attachments, are free from > viruses. > www.logan.qld.gov.au ************************************************************************* --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4527 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4530 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4531