I would like to create a Microsoft Word template that I can have a VB.net project auto fill specific fields in with database values. My question is how to best go about this with Word. Should I create a Template and add Fields, Bookmarks, or something else? I looked at fields but didn't see a way to create custom field names. Ideally, I would like to create a group of templates that have the same "Field" names that my application can recognize and fill in. Any advice would be great.
Thanks
I would suggest that you follow the guide on MSDN:
http://social.msdn.microsoft.com/Forums/en/vbide/thread/1558f560-8ae6-413a-bbc4-aa8d5d912aac
Essentially you are going to create a document with placeholders then use VB to open the document and replace those placeholders.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.