AnsweredAssumed Answered

Export won't launch Adobe Reader

Question asked by DouglasHilton on Jun 20, 2012
Latest reply on Jun 25, 2012 by user10625

I am having trouble getting FileMaker (11 and 12) runing on Windows XP to launch Adober Reader when I export (with the Automatically open option) a container field containing a .PDF document. Export creates a file and completes with an error status of 0, but does not lanch Adober Reader. I have also tried Send Event (fails with error status = 3) and Open URL (fails with error status = 5) without success. FileMaker works perfectly with all other file types (such as .TXT, or .DOC) - it launches the correct application and returns an error status of 0. FileMaker also works properly on Mac OS X and successfully launches Adobe Reader. I realize this may be a configuration issue peculiar to my machine, but I am completely stumped. I have de-installed/re-installed Adobe Reader 10.1.3 many times and checked the Registry entries. Any suggestions would be appreciated.

 

Doug

 

Here are my script steps:

 

Allow User Abort [ Off ]

Set Error Capture [ On ]

# DragandDrop::TempContainer defined as: container

# Script parameter source field defined as: container, loaded using Insert File command

Set Field [ DragAndDrop::TempContainer ; Get(ScriptParameter) ]

Set Variable [ $ContainerFilename ; Value:GetAsText(DragAndDrop::TempContainer) ]

If [ Get ( SystemPlatform ) = -2 ]

Set Variable [ $FilePrefix ; Value:"filewin:" ]

Else

Set Variable [ $FilePrefix ; Value:"filemac:" ]

End If

Set Variable [ $ExportFilePath ; Value:$FilePrefix & Get ( TemporaryPath ) & $ContainerFilename ]

Set Variable [ $SendEventFilePath ; Value:$FilePrefix & Get ( TemporaryPath ) & $ContainerFilename ]

Set Variable [ $OpenURLFilePath ; Value:"file:" & Get ( TemporaryPath ) & $ContainerFilename ]

# Export creates file, but does not launch Adober Reader; completes with error status = 0

Export Field Contents [ DragAndDrop::TempContainer ; “$ExportFilePath”; Automatically open ]

Show Custom Dialog [ Title: $ExportFilePath; Message: "Export status:" & Get(LastError); Default Button: “OK”, Commit: “Yes”]

# Send Event does not launch Adober Reader; completes with error status = 3

Send Event [ open document/application ; File Name: “$SendEventFilePath” ] [ Bring application to foreground ]

Show Custom Dialog [ Title: $SendEventFilePath; Message: "Send Event status: " & Get(LastError); Default Button: “OK”, Commit: “Yes”]

# Open URL does not launch Adober Reader; completes with error status = 5

Open URL [ $OpenURLFilePath ] [ No dialog ]

Show Custom Dialog [ Title: $OpenURLFilePath; Message: "Open URL status: " & Get(LastError); Default Button: “OK”, Commit: “Yes”]

Outcomes