Opening word documents and writing on bookmarks

I’m having trouble using bookmarks on a template. Can someone explain to me how data is sent onto bookmarks.

have you gone thru below links?

http://technet.microsoft.com/en-us/library/aa548928.aspx

http://shekhardiptiman.wordpress.com/2010/03/04/dynamics-ax-document-handling/

Yes.
I was thinking more in the lines of a Class. As in how the bookmarks are handled and how to send data.

can you tell me exact requirement please as how to send the data is in the step c in my given link.