OceanDesigner
Programmer
I posted this in the Javascript forum with no luck. Maybe you ASP guys will have some ideas.
I have MS Word form and an ASP form that have the same fields. I want the user to open the ASP page and complete the ASP version. On submit, I send data to the database, and then open the DOC version in a new window. That is all pretty easy.
Here is the problem: I want to populate the fields in the DOC version with the info that was entered by the user in the ASP version, but I cannot figure out how to identify the DOC fields. The fields in the DOC are actually called bookmarks - I don't know if that makes a difference. I can't find any "bookmark" property. I would appreciate any help.
As an example lets take one field that holds a title:
ASP form name: myform
ASP field name: ASPTitle
DOC bookmark name: DOCTitle
The following javascript is my unsuccesful attempt:
Thanks, Jeff
I have MS Word form and an ASP form that have the same fields. I want the user to open the ASP page and complete the ASP version. On submit, I send data to the database, and then open the DOC version in a new window. That is all pretty easy.
Here is the problem: I want to populate the fields in the DOC version with the info that was entered by the user in the ASP version, but I cannot figure out how to identify the DOC fields. The fields in the DOC are actually called bookmarks - I don't know if that makes a difference. I can't find any "bookmark" property. I would appreciate any help.
As an example lets take one field that holds a title:
ASP form name: myform
ASP field name: ASPTitle
DOC bookmark name: DOCTitle
The following javascript is my unsuccesful attempt:
Code:
function printform(){
mywindow = window.open("CCB/ECRForm.doc")
mywindow.documents.getElementByID("Title") = myform.Title.value
// mywindow.print()
}
Thanks, Jeff