#Define msoTextOrientationHorizontal 1 #Define msoTextOrientationHorizontalRotatedFarEast 6 #Define msoTextOrientationMixed -2 #Define msoTextOrientationUpward 2 #Define msoTextOrientationVertical 5 #Define msoTextOrientationVerticalFarEast 4 oWord = Createobject('Word.Application') With oWord .Documents.Add lnLeft = .InchesToPoints( 2 ) lnTop = .InchesToPoints( 5 ) lnWidth = .InchesToPoints( 4 ) lnHeight = .InchesToPoints( 0.5 ) With .ActiveDocument.Shapes.AddTextBox(msoTextOrientationHorizontal, ; m.lnLeft,m.lnTop,m.lnWidth,m.lnHeight) .TextFrame.TextRange = "This is textbox 1" * Precise positioning of text with textbox only .Line.Visible = .F. && No line .TextFrame.MarginLeft = 0 .TextFrame.MarginTop = 0 Endwith * Add 2nd textbox below first - text vertical lnTop = .InchesToPoints( 6 ) With .ActiveDocument.Shapes.AddTextBox(msoTextOrientationVertical,; m.lnLeft,m.lnTop,m.lnWidth,m.lnHeight) .TextFrame.TextRange = "This is textbox 2" .Line.ForeColor.Rgb = Rgb(255,0,0) Endwith .Visible = .T. EndwithCetin