Jwwplastic
New member
- Joined
- Nov 14, 2008
- Messages
- 3
- Programming Experience
- Beginner
Hi, I have a template in Microsoft Word. I can pass variables from vb.net and fill the docVariables in word if they located in the main body, header and footer. I cannot fill the docvariable if it is located in a textbox. How do i access the textbox and populate the variables in it. Below is the code i have that sends the variables to the documents, and again it works, but not if the fields are in a textbox.
any help would be appreiciated.
thanks.
VB.NET:
With oWordDoc
.Variables("Expedite").Value = Expedite
.Variables("CustName").Value = custname
.Variables("Address").Value = address
.Variables("CitystZip").Value = citystzip
.Variables("TrackingNum").Value = trackingnum & " "
any help would be appreiciated.
thanks.