Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP OLE to Word - Text Boxes

Former Member
0 Kudos
127

hi all

This is my macro recording in word

ActiveDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 216#, _
        99#, 126#, 81#).Select
    Selection.ShapeRange.TextFrame.TextRange.Select
    Selection.Collapse
    Selection.TypeText Text:="hhjgfjdfhj"

i tried this in sap as

GET PROPERTY OF doc 'ActiveDocument' = actdoc.
  GET PROPERTY OF  actdoc 'Shapes' = shapes.
  GET PROPERTY OF shapes 'AddTextbox' = textbox.
  SET PROPERTY OF textbox 'Orientation' = '1'.
  SET PROPERTY OF textbox 'Left' = '234'.
  SET PROPERTY OF textbox 'Top' = '81'.
  SET PROPERTY OF textbox 'Width' = '72'.
  SET PROPERTY OF textbox 'Height' = '45'.

but i am not able to view the textbox.. what else i have to declare or add in the coding ..Plz share suggestions to proceed further

2 REPLIES 2

Former Member
0 Kudos
57

Using Structural graphics i solved my issue

0 Kudos
57

Hello ,

I have the same requirement:

what is the "Using Structural graphics" ?

tks