Hi, I need to create two tables in a Ms Word because I have two gridviews.
But the output became "table in table".
How can I "separate" them ?

Word.Table wt1 = oWordApp.Selection.Tables.Add(oWordApp.Selection.Range, GridView1.Rows.Count + 1, 2, ref missing, ref missing);
  Word.Table wt2 = oWordApp.Selection.Tables.Add(oWordApp.Selection.Range, GridView2.Rows.Count + 1, 7, ref missing, ref missing);

Hi, I need to create two tables in a Ms Word because I have two gridviews.
But the output became "table in table".
How can I "separate" them ?

Word.Table wt1 = oWordApp.Selection.Tables.Add(oWordApp.Selection.Range, GridView1.Rows.Count + 1, 2, ref missing, ref missing);
  Word.Table wt2 = oWordApp.Selection.Tables.Add(oWordApp.Selection.Range, GridView2.Rows.Count + 1, 7, ref missing, ref missing);

i know that your post is quite old.But you have never mentioned if you were able to solve your problem.I too had the same problem and i came across one website which may be helpful for you.
http://support.microsoft.com/kb/316384

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.