help with error

FEINDFOLIO
04-19-2006, 10:32 AM
hello,
i am tring to do labels using asp 3.0 and from searching this forum i found a code snippet that would open a word template and give the results. this could work making my template pull from a database that the resultd sof a search populated. but when i run the code i get this error

active x component cant create object ("word.application")

here is the code. remeber i am just tring this way out so i dont have a lot of code just the part that is bringing up the memo.dot file. i will build from that when i get this to work.<%@ LANGUAGE=VBSCRIPT %>
<% OPTION EXPLICIT %>


<html>

<head>
<title>label_generator</title>
</head>

<body>

</html>
<SCRIPT LANGUAGE=VBScript>

Dim objWord

Sub Btn1_onclick()
call OpenDoc("\memo.dot")
End Sub

Sub OpenDoc(strLocation)
Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.add strLocation
End Sub

</script>
</body>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Word Doc">



thank you for your help

wayneph
04-19-2006, 10:44 AM
1. Is word installed on the machine where the browser is?
2. Are you using Internet Explorer?
3. Is memo.dot on the root of the client machine. (note that your path isn't to the server.)
4. What security settings do you have set up in your browser.

My guess is that you problem is the last one. I wouldn't allow my browser to create a Word object, and definately wouldn't give it access to my hard drive.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum