I'm not sure that this is possible. First you would have to be able to pass the user a word document in order for microsoft word to open. This would change the doc type from html to word document, leaving you with no client side scripting ability. It might be possible to open the document in a new window, but then you are rhoping they have the same version of word you do, among many other things. Even if you can do this, again, it may not be possible for aqn outside process to ca,ll a macro (if they even have macros on), and i think most virus programs or firewalls would catch this attempt to run a macro from remote.
-Tarwn "The problem with a kludge is eventually you're going to have to back and do it right." - Programmers Saying (The Wiz Biz - Rick Cook)
"Your a geek!" - My Girlfriends saying
Yes you can run a word macro from asp page, as I have discovered. However, passing arguments is proving to be elusive and I'm not even sure you can. My script so far:
Dim sFileNamePath,theBookMark
Set objWord = CreateObject("Word.Application"
objWord.Application.visible=true
sFileNamePath = "<%=busDocs%>"&"NewServicesTables.dot"
objWord.Documents.Open sFileNamePath, NewTemplate = false
objWord.Documents(1).Activate
name = "UNIT1"
ex = 0
prop = 20
v = 400
phs = "Three Phase/50Hz"
cable = "35mm2 Multicore"
fuse = "100A to BS1361"
earth = "PME(TN-C-S)"
mtr = "Whole Current"
I was able to run this code and it works locally on my machine. The Word Macro ran and everything is fine.
When I implement the code on a web server that does not have MS Office and the same Word Macro installed, the Macro did not run on the client machine. The client has both the MS Office and Word Macro installed.
I thought this is client side code to execute the Macro on the client computer. Is this true?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.