on 10-05-2005 12:49 PM
Hi @all,
I want to create a WORD Document with ABAP. I created an OLE2 Object and now I want to generate a Checkbox in the WORD Document. My Syntax is the following:
DATA: o_word TYPE ole2_object.
CREATE OBJECT o_word 'Word.Basic'.
CALL METHOD OF o_word 'FileNew'
EXPORTING
#1 = 'normal.dot'.
CALL METHOD OF o_word 'AppShow'.
CALL METHOD OF o_word 'CHECKBOX'.
Now my Problem is, that the CheckBox doesn't appear and I really don't have any information about what Parameters the Method 'CHECKBOX' (Word.Basic) needs.
Can anyone help me to create a CheckBox in a WORD Document and further where I can get some information about what Parameters the Word.Basic Methods need.
Thanks a lot...
Christian
Message was edited by: Christian Kremer
Hi Christian,
Welcome to SDN world.
below links might help you.
http://help.sap.com/saphelp_erp2004/helpdata/en/59/ae3c98488f11d189490000e829fbbd/frameset.htm
an easy reference for ole automation.
reward points for helpfull answers and close the thread if your question is solved.
regards,
venu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you insert a checkbox manually? You can record a macro in Word of the process of inserting the checkbox, then look at the VB code to figure out how to code it in ABAP.
I can help you if you tell me how to create the checkbox manually.
Regards,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ Rich:
The Macro code to generate a CheckBox manually is:
ActiveDocument.ToggleFormsDesign
Selection.InlineShapes.AddOLEControl ClassType:="Forms.CheckBox.1"
Can I also use Word.Application Objects instead of Word.Basic?
Because the code I have posted here seems to be the syntax I must use with Word.Application
Message was edited by: Christian Kremer
Message was edited by: Christian Kremer
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.