I am trying to export attributes of a feature to MS word. I created a Microsoft word template with a table that has attribute field names to the left and onto the right, I would like to pass the values that are related to that field in Word.
Please let me know.
I Created a .dot template and would like to pull data from attribute table to this word document.
here is what I did so far:
//Start Word and create a new document.
Word._Application oWord;
Word._Document oDoc;
oWord = new Word.Application();
oWord.Visible = true;
//start word template
object oTemplate = "c:\\Mobile projects\\Annual Patrol Form 2010 final.dot";
oDoc = oWord.Documents.Add(ref oTemplate, ref oMissing,
ref oMissing, ref oMissing);
Please guide me.
Thanks