Hi all,
Firstly thanks for all the help I've received from you guys, I'm learning so much faster with your help.
I've posted several messages concerning a program I am working on which uses a webform to create a document at the end.
So far I am able to create the doc and copy to clipboard for pasting using the code:
I am also able to open a new IE window and populate with the doc:
What I would like to do is create a new word doc and populate it with the created document. I've tried with no success using activeX etc. The best I could do was to open an existing word doc, but could not populate it. I need it to open a new blank word window, as it is not practical to have a specified word file already there.
Any help would be appreciated.
Firstly thanks for all the help I've received from you guys, I'm learning so much faster with your help.
I've posted several messages concerning a program I am working on which uses a webform to create a document at the end.
So far I am able to create the doc and copy to clipboard for pasting using the code:
Code:
document.all.txtaDocument.value += strDocument document.all.txtaDocument.select() txttoCopy = document.all.txtaDocument.createTextRange() txttoCopy.execCommand("copy")
Code:
var w = window.open(); w.document.write("<html><body style='font-family: courier new;'><pre>" + strDocument + "</pre></body></html>");
Any help would be appreciated.
Comment