help with error

04-19-2006, 09:32 AM
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 file. i will build from that when i get this to work.<%@ LANGUAGE=VBSCRIPT %>





Dim objWord

Sub Btn1_onclick()
call OpenDoc("\")
End Sub

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


thank you for your help

04-19-2006, 09:44 AM
1. Is word installed on the machine where the browser is?
2. Are you using Internet Explorer?
3. Is 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