|
I would say that it is a browser security setting based on whether the page is local or from a server. Why not just put a blank Word document or Excel spreadsheet on the server and do a normal HREF to it. That will cause the browser to open the document which would be approximately the same effect but without the scripting? Mark P.Goovaerts@xxxxxxxxxx Sent by: wdsci-l-bounces@xxxxxxxxxxxx 09/08/2003 04:59 AM Please respond to Websphere Development Studio Client for iSeries To: web400@xxxxxxxxxxxx cc: wdsci-l@xxxxxxxxxxxx Subject: [WDSCI-L] 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? _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
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.