Hi
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your request. Maybe you should just use TopBottom wrap type as shown in the code below:
// Create and empty document and DocumentBuilder.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Insert one more paragrpah into the document.
builder.Writeln();
// Move cursor to the beginning of thedocument.
builder.MoveToDocumentStart();
// Create textbox.
Shape textbox = new Shape(doc, ShapeType.TextBox);
textbox.Width = 100;
textbox.TextBox.FitShapeToText = true;
// Make textbox TopBottom, so if we insert another textbox
// into the next paragpaph, it will be always below this textbox.
textbox.WrapType = WrapType.TopBottom;
// Create paragraph and insert it into the textbox.
Paragraph par = new Paragraph(doc);
textbox.AppendChild(par);
// Insert textbox into the document.
builder.InsertNode(textbox);
// Insert some text into the textbox.
builder.MoveTo(textbox.FirstParagraph);
builder.Writeln("This is some text in this textbox");
builder.Write("This is some more text");
// Move cursor to the main content and insert one more textbox.
builder.MoveToDocumentEnd();
Shape textbox1 = (Shape)textbox.Clone(true);
builder.InsertNode(textbox1);
builder.MoveTo(textbox1.FirstParagraph);
builder.Writeln("This is some new text in the second textbox");
doc.Save(@"Test001\out.doc");
Best regards.