How to open a seperate Word File through a button in WDA?

I try to embed a world fine inside my WDA-View, but some necessary functions are deactivated.  (see [my question|A question about the SAP Demo Example: OfficeControl in WebDynpro ABAP; )
So now I try another way to open a separate Word File through a button. Do you know any suggestions?
Many thanks!

Thanks a lot for the quick replies!
Now I can open a Word file. But the content is not connected. Do you know what's the problem? The codes are as following:
METHOD onactionopen_wordfile .
  DATA : mime_repository TYPE REF TO if_mr_api,
  content TYPE xstring,
  url TYPE string VALUE 'D:\YWU\LernenMaterial\bingen\Web Dynpro\HelloWorld.doc',
  lv_fnam TYPE string..
  mime_repository = cl_mime_repository_api=>get_api( ).
get the content of the word file
  CALL METHOD mime_repository->get
    EXPORTING
      i_url              = url
      i_check_authority  = ' '
    IMPORTING
      e_content          = content
    EXCEPTIONS
      parameter_missing  = 1
      error_occured      = 2
      not_found          = 3
      permission_failure = 4
      OTHERS             = 5.
  cl_wd_runtime_services=>attach_file_to_response(
  EXPORTING
  i_filename = url
  i_content =  content
  i_mime_type = 'APPLICATION/MSWORD').
ENDMETHOD.

Similar Messages

  • How to open an MS-Word-File from a Java-Applikation ?

    Hi,
    i want to open an MS-Word-File from a Java-Applikation.
    Something like this:
    File myFile = new File("myFile.doc");
    myFile.open(); //unfortunately this methode doesn't exist
    Thanks for response

    In my opinion you have to use the Runtime.exec(String) method. I do not know the program name for msword.
    You can open a file in notepad by invoking the method Runtime.getRuntime().exec("notepad c:/xyz/abc.txt");
    Runtime runTime = Runtime.getRuntime();
    runTime.exec("programName" + " " + file);
    Of course the computer on which the program runs must have the application!
    Hope this helps!

  • How to open pdf or fdf file through firefox 3.0.5?

    Hi all,
         I am trying to open a fdf file through firefox in linux machine by clicking the link on that it wants to open a fdf file from remote location. When I am trying to open then it will show an error message in error console like:
    Security Error: Content at http://172.16.3.116:8080/ManuscriptScreening/source/journal/ProductionEntry.jsp may not load or link to smb://editor:edit*[email protected]/Copyediting/ELS/Manuscript_Screening/MS/RDTEST/02-Process/RDTEST-D-08-10245.fdf
    Can any body give me a solution for this problem? I am using smb to fetch files from server. In my linux machine we are using Adobe Acrobat 5.0 professional version and also Adobe Reader 8. The link is available in jsp page.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How to open pdf or word doc or notpad file in flex

    hai friends,
           how to open pdf or word doc or notpad file in flex. i am doing flexcoldfusion project. now i reterive data(notpad or worddoc or pdf file path) from database using coldfusion.now i want to open that file content .if i reterive notpad file .that will show in notpad. if it is possible. give example.
    regards,
    welcomecanv

    Hi WelcomeCan,
    Try this...
    var urlRequest:URLRequest = new URLRequest();
        urlRequest.url = "http://www.yourdomain.com/notepad.txt";
        //urlRequest.url = "http://www.yourdomain.com/FlexComp.pdf";
        navigateToURL(urlRequest,_blank);
    Thanks,
    Bhasker Chari

  • How do I open a microsoft word file using Teststand 2010?

    Hi All,
    I am currently using Teststand 2010. I need to do a simple task, at least I thought it was simple. I want to open a microsoft word file using Teststand 2010. I thought the using the "Call Executable" would be the first step, but I am not sure how to set it up. Any help would be greatly appreciated.
    Thanks,
    WJ

    Hello,
    You will actually need to use an ActiveX step to use Microsoft Word. I found this forum post with a similar question and an example. I opened the example and saved it to TestStand 2010 to reattach here.
    Note: you will probably need to modify the "Open Document" step to make sure the FileName of the Word document matches the real file location.
    Taylor B.
    National Instruments
    Attachments:
    TestStand MS Word.zip ‏13 KB

  • How to send business card (VCF file) through sms? it can only be send via email?

    how to send business card (VCF file) through sms? it can only be send via email?

    Go into your contacts click on the person you want to send, when the info opens scroll down to the bottom and click share contact it will as it you want to email or mms. 

  • How can I upload a (image) file through an applet ?

    How can I upload a (image) file through an applet ?

    have a look at http://www.haller-systemservice.net/jupload/
    i'm using Apache Jakarta HTTPClient to create a new HTTP connection to the webserver and sending a new POST request, which holds the image file. (So it's RFC1867 conform)
    there is also an open source implementation of such an applet on sourceforge. it's also called JUpload, but i think it's not maintained any more.

  • On iPad can I open a Microsoft word file with apple pages app?

    On iPad, can I open a Microsoft word file with apple pages application?  If so how do I perform this activity?

    Yes you can open Word files. If it is an email attachment you can simply tap and hold down on the icon and select "open in" and then select Pages - as long as you have the Pages app on the iPad.
    Where is the file on your iPad or how do you want to move it to the iPad?

  • Open And Edit Word File In SharePoint Site Programmatically (Without Save On Local system)

    Hi Sir ,
             I am working as sharepoint developer. I have face some problem in Edit and open document file in sharepoint site programmatically. I want to open file and edit directly in sahrepoint site without save in local system,
         Issue:   I have upload one doc file then try to edit and open but In that case file is dowanload and save in local save.

    Hello,
    As i understand you want to open and update word file. Please have a look at below links:
    http://mysharepointwork.blogspot.ca/2010/06/programmatically-open-and-save.html
    http://howtosharepoint.blogspot.ca/2010/05/programmatically-edit-and-save-file.html
    It is good place to start.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • I have converted a pdf to word. How can I access the Word file from my online account?

    I have converted a pdf to word. How can I access the Word file from my online account? When it says 'download the converted file' I choose a location on my PC and click, but nothing happens. It seems that it can only save the converted file to my online account. I went to my online account but I see no way to look for the file

    Hey Fabrizio,
    You might need to sign up at "https://cloud.acrobat.com/exportpdf" using your Adobe ID credentials to convert your PDF file to Word.
    Do you get the 'download' prompt?
    Also, you can find the converted files by clicking at the 'Files' tab. 
    Please try the same using a different browser and check.
    Hope to hear from you.
    Regards,
    Anubha

  • Can't open Excel or Word files on share drive (SMB or AFP) after 10.9.2

    After updating to Mavericks OS 10.9.2, I can no longer open excel or word files on my company file share.  I receive the error:
    'FILEPATH' could not be found.
    Ckeck the spelling of the file name, and verify that the file location is correct.
    If you are trying to open the file from your list of most frequently used files on the File menu, make sure that the file has not been renamed, moved, or deleted.
    I am able to open files on my lcaol hard drive, and other external USB Flash drives.  Word present's a slightly different error, with the same theme (filename).
    I've tried rebooting both the client and server (both running 10.9.2).  Was successful opening files when booting the client into safe mode.  Any ideas?
    Bill

    I don't know if this will help but I had a similar problem that started yesterday. I have two macs.  Once can't open MS Office files from the other Mac but can open Office files on each Mac. Drove me nuts for about 2 hours today - on the phone with Apple twice and Microsoft once.  Finally found a similar post from 2007 that suggested to turn off and on file sharing by unchecking the "Share files and folders using AFP", on both computers and rebooting. That fixed it. 
    Funny thing, it was only with Office files I created since updating the software last week. Old Office files opened fine. 

  • How to append records in a file, through file adapter.

    Hi All,
    How to append records in a file, through file adapter.
    I have to read data from database and need to append all records in a file.
    Thanks in Advance.

    Hi,
    I think you have a while loop to hit the DB in your Process (As you said you have to fetch data from DB 10 times if 1000 rec are there)
    First sopy your DB O/P to one var
    and from second time append to previous data.(Otherwise you can directly use append from starting instead of copy and append)
    When loop completes you can transform to File adapter Var.
    Otherwise you can configure yourFileadapter such that it will aapend current records to previous records.
    You can use 'Append= true' in your file adapter wsdl.
    It will append previous records to current records in the same file.
    Regards
    PavanKumar.M

  • How do I convert a word file larger than 100 mb to pdf?

    I use the adobe online pdf service to convert word files.  I have a file that is 101mb and the converter won't upload and convert the file. How do I convert this word file to pdf now?

    Hi adrentcdc,
    There is a 100 MB file-size limit for uploading to the Adobe PDF Pack online service. Since no such limitation exists for Acrobat, you could use that to convert the file to PDF. You're welcome to download a free  30-day trial, and give it a spin. For more information, see www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • How to open multiple artboard illustrator file in illustrator. Coz, whenever we open a multiple artboard file, illustrator provide an option to chose one artboard but does not allow opening of all artboards. Somebody may explain it

    How to open multiple artboard illustrator file in illustrator. Coz, whenever we open a multiple artboard file, illustrator provide an option to chose one artboard but does not allow opening of all artboards. Somebody may explain it

    Doug's got it right. It sounds like you are trying to open a later version file in an earlier version. This will always be handled as opening the PDF portion of the file. Try Googling AI_openMultiPagePDF for a script to open these or Resave from the newer version to the older.

  • Opening a MS Word file in Browser.

    Hi! Friends....
    I am trying to open a Ms Word file in a java prog. What actully i am doing is that i am opening the file using JSP.
    I am creating a blank file using
    new File();Then i am setting its content type
    setContent type('application/msword');seting its default encoding
    setEncoding('UTF-8')It is opening the file.But asking in which application to use.And thenasking which encoding type to use to open.
    I want that it should open that directly in Ms word and should not ask the encoding type to open for.
    Please suggest me some thing.
    Thanks and Regards

    You shouldn't be doing that in a JSP. Some widely used webbrowser developed by a team in Redmond would look at the URL (which ends at .jsp, is it?) rather than the headers.
    Use a Servlet for that which takes the file name as part of the request URL. You may find this article useful: [http://balusc.blogspot.com/2007/07/fileservlet.html]. Just change the content disposition to 'inline'.
    Jamwa wrote:
    Put the following in the body of your jsp:
    <%
    response.setHeader("Content-disposition", "attachment; filename=myFile.doc");
    %>
    That won't open the file directly. That would pop up a 'save as' dialogue.

Maybe you are looking for

  • How do I transfer iTunes from a pc to an iMac?

    I have a dell laptop and I want to transfer my iTunes from that laptop to my iMac. What's the best way?

  • Same pdf is different in adobe reader en acrobat professional

    Hello, I have a slight problem with a PDF file. I have one pdf. When I open this pdf within Adobe Reader, everything looks fine, when i open exact the same PDF with acrobat professional, something weird is happening. The font't are changed. Also, som

  • Acrobat X Standard: OCR don't work. Program stops. Reinstallation twice wihout success.

    Hallo, da ich über eine englischsprachige Ausgabe von Adobe reingekommen bin, habe ich meine "Frage" aif Englisch gestellt. Ich nutze Acrobat X Standard. Seit einiger Zeit bricht Acrobat jeden Texterkennungsvorgang nach ca. 30 Seiten mit der Fehlerme

  • Transport Request creation in ECC 6.0

    Hi, I am trying to do translations in SE63 and SE91( Message Class) in ECC6.0. I am not able to create Transport Request for the changes.Can any one help me in creating Transprot Request for translations in ECC6.0. If possible can any one give me URL

  • Lexar 2 GB Jump Drive Secure II

    When I attempt to transfer files off of above drive app. 3-5 MB will transfer, freeze up and I eventually get a dialog box stating that the drive was improperly removed. Also, just recently my Maxtor external FW HD does not mount and I get a dialog s