using Microsoft.Office.Interop.Word; using System.Data; using Microsoft.Office.Core; float top = 20; float height = 250; Document wrdDoc; Microsoft.Office.Interop.Word.Application app; app = new Microsoft.Office.Interop.Word.Application(); app.Visible = true; wrdDoc = app.Documents.Add(Type.Missing, Type.Missing, Type.Missing, Type.Missing); for (int i = 0; i < 25; i++){ Microsoft.Office.Interop.Word.Shape textbox = wrdDoc.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationHorizontal, 20, top, 250, height); textbox.TextFrame.TextRange.Text = "VSTO" + i.ToString(); top += height + 20;}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)