Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLEASE PLEASE HELP WITH LAUNCHING WORD!!!

Status
Not open for further replies.

BongoMudpie

IS-IT--Management
Apr 27, 2002
32
GB
I am working on a project that involves the end user being able to launch a microsoft word document - when they have launched it they can then fill in the the clients proposal form and either print it off and fax it or email it straight back to the client. I have tried this script but it does nothing!! Please can anyone help, I have a meeting with the client very soon!!!!!!

on mouseDown
open "DocumentName" with "C:Word.exe"
end

Why won;t it work????
 
First of all, i don't know much about Director, i've been using Flash, but i'm trying to learn Director, but either way, your path to Microsoft word isn't very good, and here's why:

IF that path is correct for YOU, that DOESN'T mean it'll work for someone else. Meaning, that if you DO in fact have your Microsoft Word installed in the root C directory of your computer, which is doubtful to begin with, then most other people won't have Word.exe in their C drive. By default, when installing Microsoft Word, or the Office Suite, it wants to install NOT just in the root C directory. For example, my computer is a Windows 98 machine, and Word is located here:

C:\Program Files\Microsoft Office\Office\Winword.exe

So on MY computer, here's how your code WOULD work (if the rest of the code is correct):

on mouseDown
open "DocumentName" with "C:\Program Files\Microsoft Office\Office\Winword.exe"
end


So yeah, the location of Microsoft Word is variable, so there's no way to specify the program location, and have it open up for everyone. in Flash, i would just make the link open up the DOC file, and the computer figures out if it has the file association, which most do, and it'll open up either Word or WordPad (which comes with Windows). i'm not sure what to do with Director yet.

I hope that helps some.

...SuperbBoy

.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top