cancel
Showing results for 
Search instead for 
Did you mean: 

open the word file on the click of Link

Former Member
0 Kudos

Hello,

I have a requirement to open the word file on the click of LinkToUrl.

Could anyone please explain the steps of doing that?

Regards,

Jyotsna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

What are we supposed to give in i_content??

The word file is in MIME folder.Could you plesae elaborate on the steps involved?

Regards,

Jyotsna

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If the Word document is the in the MIME folder then why use a linkToAction? Instead consider a linkToURL with the URL of the Word document. Eveything in the MIME repository has a unique URL already.

Answers (2)

Answers (2)

Former Member
0 Kudos

Use this method attach_file_to_response to open a Word document :

I hope u have that file stored somewhere in xstring format. If so , use this :

CALL METHOD cl_wd_runtime_services=>attach_file_to_response

EXPORTING

i_filename = 'saurav.doc'

i_content = lv_xstring " Content should be in XSTRING FORMAT

i_mime_type = 'DOC'

Former Member
0 Kudos

Hi,

Have a look at WD comp WD_TEST_APPL_ACFEXECUTE. With that you can start applications on the frontend, such as Word. More information can be found in this thread:

Cheers, Roel