hello guys,,

I hav a problem on inserting the data from database into the header & footer's bookmark in word document...

let me xplain whats i'm going to do ..

now, im doing a project where i have to use combination of Word Document + vb.net....
i want to insert the data from database to the bookmark in the word document..i having a problem of inserting the data into the bookmark in header and footer column..the vb will ignore the bookmark because it dont detect the bookmark inside the header & footer...

my normal codes used to be like this: ( when the bookmark not in the header & footer)

.Selection.GoTo(what:=Word.WdGoToItem.wdGoToBookmark, Name:="Data2")

.Selection.TypeText(Text:=Trim(Trim(dsPerson.Tables(0).Rows(0).Item(2))))

but,,,when it involve the header and footer, i dont know how to write a code...

plzz...anyone from out there dat can help??