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.
[email protected]
 
Top