marr
asked on
launch ms-word document in browser
my application needs to call an ms-word document and launch it in the browser. how do i do this using vbscript? tnx
Hi!
You can invoke ms-word (or any such application) only when there is an associated file already available. I do not think you can invoke any application without having an accociated file.
regards,
Raghu
You can invoke ms-word (or any such application) only when there is an associated file already available. I do not think you can invoke any application without having an accociated file.
regards,
Raghu
Of Course you can always open an Ms-Word document in the browser.Check the permissions of the virtual directory
in your IIS
you can call this script on any event
<script language="vbscript">
window.open "./Test.doc","Wintest"
</script>
<script language="vbscript">
window.open "Full Path","Wintest"
</script>
regards
Anup
in your IIS
you can call this script on any event
<script language="vbscript">
window.open "./Test.doc","Wintest"
</script>
<script language="vbscript">
window.open "Full Path","Wintest"
</script>
regards
Anup
anup saab,
window.open "./Test.doc","Wintest" will invoke winword, but, you are invoking winword via an associated file ('test.doc', in this case).
Can we invoke an application without having an associated file with it ? Say for example, if I wish to invoke winword but I do not want winword to open test.doc....
regards,
Raghu
window.open "./Test.doc","Wintest" will invoke winword, but, you are invoking winword via an associated file ('test.doc', in this case).
Can we invoke an application without having an associated file with it ? Say for example, if I wish to invoke winword but I do not want winword to open test.doc....
regards,
Raghu
Hi...
Addressing to the issue as raised by Mr.Raghu
we can open the word application from asp here is the script
Set WordApp = CreateObject("word.applica tion")
Set WordDoc = WordApp.Documents.Add()
this can be done on client and server side both
But ,...
there are many issues tp be solved before it
AspAllowOutOfProcComponent s property is to be set true
in IIS Metabase as defaultly only Inproc components are
allowed to be instiantiated....
for more details
refer
http://support.microsoft.com/support/kb/articles/Q285/1/76.ASP ---for Creation of word doc
http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/iis/deploy/config/metabase.asp ---for setting the AspAllowOutOfProcComponent s true
right Raghu sab....??
regards
Anup
Addressing to the issue as raised by Mr.Raghu
we can open the word application from asp here is the script
Set WordApp = CreateObject("word.applica
Set WordDoc = WordApp.Documents.Add()
this can be done on client and server side both
But ,...
there are many issues tp be solved before it
AspAllowOutOfProcComponent
in IIS Metabase as defaultly only Inproc components are
allowed to be instiantiated....
for more details
refer
http://support.microsoft.com/support/kb/articles/Q285/1/76.ASP ---for Creation of word doc
http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/iis/deploy/config/metabase.asp ---for setting the AspAllowOutOfProcComponent
right Raghu sab....??
regards
Anup
Anup,
went through the article.. liked it.. but failed to implement the code... what could be wrong then..
I have set the IE options (to 'prompt' while initia..)
Here is my try.asp file:
------------------------
<html>
<head>
</head>
<body>
<script language=vbscript>
Set WordApp = CreateObject("word.applica tion")
Set WordDoc = WordApp.Documents.Add()
</script>
</body>
</html>
-------------------------
IE prompts me when I access this page, but fails to run winword...
I am running IE 5.0 on Windows 2000...
regards,
raghu
went through the article.. liked it.. but failed to implement the code... what could be wrong then..
I have set the IE options (to 'prompt' while initia..)
Here is my try.asp file:
------------------------
<html>
<head>
</head>
<body>
<script language=vbscript>
Set WordApp = CreateObject("word.applica
Set WordDoc = WordApp.Documents.Add()
</script>
</body>
</html>
-------------------------
IE prompts me when I access this page, but fails to run winword...
I am running IE 5.0 on Windows 2000...
regards,
raghu
ASKER
how will i call/open the word document from a hyperlink? also, do the previous codes also apply to ms excel?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[points to nilapenn]
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
hongjun
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
[points to nilapenn]
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
hongjun
EE Cleanup Volunteer
As recommended
Chmod
Community Support Moderator @Experts Exchange
Chmod
Community Support Moderator @Experts Exchange
<script language="vbscript">
window.location.href="your
</script>