Link to home
Start Free TrialLog in
Avatar of kkuchana
kkuchana

asked on

Using merge option of word document from

Hi,
I have a word document template (let's say in C drive).
The document has few merge fields let's say <<FirstName>> and <<LastName>>.
Now, I need to create a dll/vb.net code where in when I run the application must replace the fields <<FirstName>> and <<LastName>> with the values passed and ask me to open/Close/save the document.
I am looking at similar feature to merge, replace text.
However, my original template must still be the same.

Regards,
ASKER CERTIFIED SOLUTION
Avatar of gova
gova
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kkuchana
kkuchana

ASKER

How about importing the namespaces
and hopefully Name:="Name" where the later "Name" is the BookMark
How about saving the document?

Imports Microsoft.Office.Interop
Imports Word

Name is the bookmark only