Hi Alan,
Instructions in C# for inserting adding three lines of text, putting
a textbox at the start of the second line (size specified in the AddTextBox
call),
adding some text to the box, and changing the layout to make the box inline
with the text are:
object opt = Type.Missing;
Word.Shape shape;
word.Selection.Text = "One\r\nTwo\r\nThree\r\n";
word.Selection.SetRange(5, 5);
object sel = word.Selection;
shape =
doc.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal,
5.0f, 10.0f, 250.0f, 100.0f, ref sel);
shape.TextFrame.TextRange.Text = "Put this in the box";
shape.WrapFormat.Type = Word.WdWrapType.wdWrapInline;
I can send you the sample program if you like
Cheers
Bill