469,646 Members | 1,150 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

Mail Merging


I'm trying to do mail merging in C#.NET and in one methods:

Word.Application wrdApp;
Word._Document wrdDoc;
Object oMissing = System.Reflection.Missing.Value;
Object oFalse = false;

private void FillRow(Word._Document oDoc, int Row, string Text1,
string Text2, string Text3, string Text4)
// Insert the data into the specific cell.
oDoc.Tables[1].Cell(Row, 1).Range.InsertAfter(Text1);
oDoc.Tables[1].Cell(Row, 2).Range.InsertAfter(Text2);
oDoc.Tables[1].Cell(Row, 3).Range.InsertAfter(Text3);
oDoc.Tables[1].Cell(Row, 4).Range.InsertAfter(Text4);

it's giving me this Error:
Cannot apply indexing with [] to an expression of type 'Word.Tables'
Mar 23 '07 #1
0 1032

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dan Nash | last post: by
reply views Thread by webtrack+googlegroups | last post: by
2 posts views Thread by Danny Ni | last post: by
6 posts views Thread by crealesmith | last post: by
7 posts views Thread by =?Utf-8?B?QmFkaXM=?= | last post: by
7 posts views Thread by giladp1 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.