How to Accessing field of MS-Word by Name instead of Index in VB.N

N

Nirmalkumar

Hi,

I hvae one MS-Word document, which has some merge fields. in VB.NET i need
to update these fields with data from DB.

But while accessing i want to access the field by name instead of index.
objSrcFromDoc.Fields.Item(1).Result.Text = "Data from DB".

Here we are accessing by Index, but i need to access by field name.

Is there any way.

Please help me.

Nirmal.
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top