Code: Alles auswählen.
CREATE OBJECT h_word 'WORD.APPLICATION'.
SET PROPERTY OF h_word 'Visible' = '1' .
CALL METHOD OF h_word 'Documents' = docs.
CALL METHOD OF docs 'Open' = doc
EXPORTING #1 = 'c:\temp\test23.doc' .
CALL METHOD OF h_word 'ActiveDocument' = o_activedoc.
CALL METHOD of o_activedoc 'Activate'.
call method of o_activedoc 'Content' = o_content.
call method of o_content 'Find' = o_find.
CALL METHOD OF o_find 'Execute'
EXPORTING #01 = 'TEL'
#02 = 1
#03 = 1
#04 = 0
#05 = 0
#06 = 0
#07 = 0
#08 = 0
#09 = 0
#10 = 'Hallo'.
Code: Alles auswählen.
call method of docs 'Add'.
Code: Alles auswählen.
CALL METHOD OF docs 'Open' = doc
EXPORTING #1 = 'c:\temp\test23.doc' .
Code: Alles auswählen.
CALL METHOD OF H_WORD 'EDITGOTO' " 'EDITGOTO'
EXPORTING
#1 =
#2 = 'textmarke'.
Code: Alles auswählen.
* Zu einer Textmarke springen
CALL METHOD OF H_WORD 'EDITBOOKMARK'
EXPORTING
#1 = 'textmarke'
#2 = 0
#3 = 0
#4 = 0
#5 = 1.
Burki hat geschrieben:Hab damit auch grad Größte Probleme gehabt, jedoch hab ich's rausbekommen:
Unter früheren Patch-Leveln des SAP-GUI funktioniert:Ab 6.20 sollte diese Methode funktionieren:Code: Alles auswählen.
CALL METHOD OF H_WORD 'EDITGOTO' EXPORTING #1 = 'textmarke'.
Code: Alles auswählen.
* Zu einer Textmarke springen CALL METHOD OF H_WORD 'EDITBOOKMARK' EXPORTING #1 = 'textmarke' #2 = 0 #3 = 0 #4 = 0 #5 = 1.