On my PC, running Office XP, WinWord & Excel are in the Program
Files\Microsoft Office\Office10 directory.  Since doing a Start - Run
and typing WINWORD works, you might want to try removing the path from
your command.  (BTW, I think the spaces in the "file://C:\Program
Files\Microsoft Office\Office\WINWORD.EXE" are tripping it up;
"file://C:\Program%20Files\Microsoft%20Office\Office\WINWORD.EXE" might
work better)

-----Original Message-----
From: P.Goovaerts@xxxxxxxxxx [mailto:P.Goovaerts@xxxxxxxxxx] 
Sent: Monday, September 08, 2003 4:00 AM
To: web400@xxxxxxxxxxxx
Cc: wdsci-l@xxxxxxxxxxxx
Subject: [WEB400] Launch PC-application from webapplication (html)


I want to load Word / Excel from a webpage loaded by a webapplication 
running on our Websphere Application Server.

I developed this page in WSAD where it runs ok.  I have a Word_button 
which, when clicked, launches the WordApplication.  However, when I move

this page to the iSeries it doesn't work anymore. 

Following error is shown:
...
Error: ActiveX component can't create object: 'WScript.shell' ...

This is the html-part
...
<script language="vbscript"> 
        Sub Word_onClick
                runcmd = "file://C:\Program Files\Microsoft 
Office\Office\WINWORD.EXE"
                Set WShell = CreateObject("WScript.Shell")
                WShell.Run Chr(34) & runcmd
        end Sub
        Sub Excel_onClick
                runcmd = "file://C:\Program Files\Microsoft 
Office\Office\EXCEL.EXE"
                Set WShell = CreateObject("WScript.Shell")
                WShell.Run Chr(34) & runcmd
        end Sub
</script>
...
<BUTTON type="button" name="Word" ACCESSKEY="W" style="font-size: 5pt; 
font-family: Verdana">
        <img src="/images/icons/word.jpg">
</button>

any idea's?




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.