i try to open/call a word document via button in my BSP.
I have written a programm which do that if i call the prog in my workbencht.
When trying to call the prgramm in the BSP Eventhandler, the document won't get open.
Can you help me?
Thats the souce code of the programm
DATA: word TYPE ole2_object,
document TYPE ole2_object,
formfield TYPE ole2_object.
CREATE OBJECT word 'WORD.APPLICATION'.
CALL METHOD OF word 'Documents' = document.
CALL METHOD OF document 'Open' = document
EXPORTING #1 = 'C:\Word\test.doc'.
SET PROPERTY OF word 'Visible' = 1.