Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Composite Xtra
Animated Cursor
System Tools
simINET Xtra
Wait for DigitalVideo Cuepoint
A Simple Back Button
Custom Alert
Compound Interest
Filtering - Valentina
Dervich Pivot Xtra
MediaMacros Xtras Mall
 

 

 

Behavior Open Acrobat File

Added on 9/16/1999

 

Compatibilities:
D6_5 D7 D8 PC Script

Required Xtras:
Buddy API

Rating:

Author: MediaMacros (website)

Runs an acrobat file with with the specified paramaters.

--Code by Chuck Neal
--Chuck@mediamacros.coc

property typeLaunch, fileToOpen

on getPropertyDescriptionList me
  set p_list = [#fileToOpen: [#format : #string, #comment : "File to open-Including path and extension:", #default:""], #typeLaunch : [#comment: "Type of PDF open: ", #format: #string, #default: "Open", #range: ["Open", "Open /No Splash Screen", "Print-No Open"]]]
  return p_list
end

on mouseUp me
  if baFileExists(the moviePath & fileToOpen) = 1 then
    set Acrobat = baFindApp( "pdf")
    set myFile = baShortFileName(the moviePath & fileToOpen)
    if Acrobat <> "" then      
      case typeLaunch of
        "open" :
          baOpenFile(myFile , "maximised")
        "Open /No Splash Screen" :
          set launchString = baShortFileName(Acrobat) & " /s " & baShortFileName(myFile)
          baRunProgram(launchString, "Maximised" , false )              
        "Print-No Open" :
          baPrintFile(myFile)          
      end case
    end if
  else
    alert "File" && fileToOpen && "doesn"t exist."
  end if
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail