Javier, Try LAUNCH .vDocFile
Dennis McGrath Software Developer QMI Security Solutions 1661 Glenlake Ave Itasca IL 60143 630-980-8461 [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Javier Valencia Sent: Thursday, March 29, 2012 1:41 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Launching a PDF file Very strange problem. In an application I open a PDF file via the Launch command. LAUNCH &vDocFile Where vDocFile has the path and name for the file. This works on every computer except in one where the user gets the following error: "There is no application associated with the given filename extension." I have looked at the file type association and it correctly list Acrobat Reader. I can double click on the file on the Windows Explorer and it opens the file correctly I go to the command prompt and type: Assoc.pdf I get: .pdf=AcroExch.Document Which is the same thing I get on the other working computers. I created a quick test.bat batch file with the command: START AcroRd32.exe "testscan123.pdf" And when I run the batch file (double click on the Windows Explorer) it opens the PDF file correctly. I have uninstalled Acrobat and re-installed the latest version and I still get the same error. I have a simulated c> prompt in the compiled application where I can enter a command and it will execute it. I tried entering: LAUNCH test.pdf And I get the same error message I tried launching a different file type to verify the simulated c> prompt: LAUNCH test.xls And the Excel file open correctly I also tried launching the batch file: LAUNCH test.bat And it works correctly I have added a copy of the PDFViewerControl form (from the RRBYW17 sample) and it open the file correctly. As I indicated above, this happens in only 1 computer (Windows XP) that is configured the same way as the other computers that work. This is driving me crazy; any help will be greatly appreciated. Javier, Javier Valencia, PE O: 913-829-0888 H: 913-397-9605 C: 913-915-3137 --- RBASE-L ================================================ TO POST A MESSAGE TO ALL MEMBERS: Send a plain text email to [email protected] (Don't use any of these words as your Subject: INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH, REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP) ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: INTRO ================================================ TO UNSUBSCRIBE: Send a plain text email to [email protected] In the message SUBJECT, put just one word: UNSUBSCRIBE ================================================ TO SEARCH ARCHIVES: Send a plain text email to [email protected] In the message SUBJECT, put just one word: SEARCH-n (where n is the number of days). In the message body, place any text to search for. ================================================

