Skip to Content
avatar image
Former Member

open the word file on the click of Link

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 10, 2010 at 01:03 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • avatar image
    Former Member
    Nov 10, 2010 at 11:48 AM

    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: acfexecute

    Cheers, Roel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 10, 2010 at 11:56 AM

    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'

    Add comment
    10|10000 characters needed characters exceeded