Click here to Skip to main content
15,558,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How would I export data from a textbox in vb.net to a textbox in Word 2010, this word document would be in a template were every time this operation is carried out a new document with said template is created, with a new filename i.e. 1.dox and so on. Thanks

Sorry its difficult to explain, I want information stored in a textbox on a form in vb.net to be exported to a textbox in word once a button has been clicked on. This document would be stored as a blank template so that each time the operation I have described above is carried out a new document would be created containing the information from the textboxes in vb.net.
Posted
Updated 30-Dec-13 5:15am
v2
Comments
Maciej Los 30-Dec-13 10:08am    
Wow! I really do not understand you... ;(
Member 10456650 30-Dec-13 10:14am    
Sorry its difficult to explain, I want information stored in a textbox on a form in vb.net to be exported to a textbox in word once a button has been clicked on. This document would be stored as a blank template so that each time the operation I have described above is carried out a new document would be created containing the information from the textboxes in vb.net.

1 solution

I would suggest you to start here: Working with Text in Documents[^]

I think you don't need TextBox in Word document. All what you need is a bookmark: How to: Programmatically Update Bookmark Text[^]
 
Share this answer
 
Comments
Member 10456650 30-Dec-13 11:57am    
Thank you for your response and I hope you have a happy new year.
Maciej Los 30-Dec-13 11:58am    
Thank you. Best Wishes for New Year!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900