Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP OLE Word for reading a file

Hi,

I am looking for the method or property to get the word document content to send it to the clipboard.

All I found an OLE is for writing but not for reading and I need it to read a file.

Someone got an idea?

Thanks a lot.

David

Former Member
Former Member replied

Hi David, the ad on top sucks.

it's already almost 10 years old but SAP did not develop anything new un this area (as far as I know),

[Desktop Office Integration (BC-CI) H|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf]

copy_selection
You use this method to copy marked text from the office document to the clipboard:
CALL METHOD document->copy_selection
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode.

paste_clipboard
You use this method to insert the contents of the clipboard at the current cursor position. The
clipboard contents are inserted as fixed text; there is no link to the object:
CALL METHOD document->paste_clipboard
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode.

select_all
You use this method to mark all text in the office document.
CALL METHOD document->select_all
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode.

I hope you were looking for this.

Regards,

Clemens

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question