Forum Moderators: open
This is a bit of a long shot, but here goes...
I am working on a project which will be delivered 'locally' on a CD-ROM. A series of HTML pages will ask the user various question resulting in a final HTML page being 'constructed' through Java script using the IE.5 browser as the interface according the the 'answers' the user gives.
To cut a long and complicated story short, the user will be able to view their 'custom' HTML page (showing consolidated answers to the previously asked questions) by clicking a on link located on a final 'your questions have been answered' page and opening the page again in IE.5
I am wondering if there is a way in which I can supply a second link saying something like 'open in Word', which will automatically open the HTML file in Word - assuming the user has Word installed of course.
Just to remind you, the whole thing must run locally on a CD and, to make life even harder, it must run on a Mac and on Windows!
As I said, a long shot but any help would be very much appreciated.
Thanks.
this seems no to be able in a staightforward way. the only idea i have is to use dom to select the complete document put it to clipboard and the user will be able to open his/her wordprocessor and paste it in himself.
another thingy which might be valuable to investigate is the word-activex-document-component. maybe you can use vbscript to create such a document in the users' browser.
what do you think about these ideas?
p.s.: don't know if there is something like activex on a mac... ;)
<script language=vbscript>
Dim objWord
' create word & open a template from the CD
Set objWord = CreateObject("Word.Application")
Set myDoc = objWord.Documents.Add("d:/myTemplate.dot")
'populate the doc
With myDoc
.Bookmarks.Item("bkFoo").Range.InsertAfter "Some Text"
End With
' display it
objWord.Visible = True
</script>