help with error
|
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.
HTML Code:
<%@ 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
|
__________________
life is like a box of chocalate, sometimes you get a nasty one
Last edited by wayneph; 04-19-2006 at 09:42 AM.
Reason: please use [vb], [html] or [code] tags for posting code
|