M
mark
i currently have some code that creates a word document on the client side
in an intranet environment - this works fine but i need to take it a step
further - id like the word document to be autopopulated by data thats in the
pages text boxes - is this possible ?
the code i use for creating and opening the document is :-
<SCRIPT language="VBScript">
Dim objWord
Sub OpenDoc()
Set objWord = CreateObject("Word.Application")
objWord.Documents.Open("mytempdoc.doc")
objWord.Visible = true
objWord.activedocument.saveas(HiddenDocName.innertext)
set objWord=nothing
exists="True"
end if
End Sub
</SCRIPT>
hiddendocname.innertext creates a new instance of the tempdoc into a
specific folder
could i use bookmarks ?
cheers
mark
in an intranet environment - this works fine but i need to take it a step
further - id like the word document to be autopopulated by data thats in the
pages text boxes - is this possible ?
the code i use for creating and opening the document is :-
<SCRIPT language="VBScript">
Dim objWord
Sub OpenDoc()
Set objWord = CreateObject("Word.Application")
objWord.Documents.Open("mytempdoc.doc")
objWord.Visible = true
objWord.activedocument.saveas(HiddenDocName.innertext)
set objWord=nothing
exists="True"
end if
End Sub
</SCRIPT>
hiddendocname.innertext creates a new instance of the tempdoc into a
specific folder
could i use bookmarks ?
cheers
mark