private void button1_Click(object sender, EventArgs e) { object missing = System.Reflection.Missing.Value; object Visible=true; object start1 = 0; object end1 = 0; object styleTypeTable = WdStyleType.wdStyleTypeTable; ApplicationClass WordApp = new ApplicationClass(); Document adoc = WordApp.Documents.Add(ref missing, ref missing, ref missing, ref missing); // Tables tb = adoc.Tables; Object defaultTableBehavior = Type.Missing; Object autoFitBehavior = Type.Missing; Range rng = adoc.Range(ref start1, ref missing);tb.Add(rng, 2,2, ref missing, ref missing); Table tbl =adoc.Tables[1]; tbl.Borders.Enable = 1; tbl.Cell(1, 1).Range.Text = "Hi"; tbl.Cell(1, 2).Range.Text = "Hi"; tbl.Cell(2, 1).Range.Text = "Hi"; tbl.Cell(2, 2).Range.Text = "Hi"; object strt =tbl.Range.End; Range ran = adoc.Range(ref strt, ref strt); rng.Copy(); Table tbl2= tb.Add(ran, 2, 2, ref missing, ref missing); //tbl2 = adoc.Tables[1]; tbl2.Borders.Enable = 1; //tbl2.Cell(1, 1).Range.Text = "Second table"; tbl2.Cell(1, 1).Range.Text = "Second table"; tbl2.Cell(1, 2).Range.Text = "Second table"; tbl2.Cell(2, 1).Range.Text = "Second table"; tbl2.Cell(2, 2).Range.Text = "Second table"; try { object filename = @"D:\MyWord.doc"; adoc.SaveAs(ref filename, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing); WordApp.Visible = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } }