Open word document in WD application

Hi,
I need to open a word doc. in my webdynpro application. I have found few blogs here referring to MIMEs object but i couldn't get the complete process that need to be follow. I have imported MIME object in MIME repository and stuck at this point. Can anybody please tell me whole process in brief that is require in this issue.
Rgds
Sudhanshu

hi,
Refer this :
METHOD onactionopen_wordfile .
DATA : mime_repository TYPE REF TO if_mr_api,
content TYPE xstring,
url TYPE string VALUE 'SAP/BC/WebDynpro/SAP/ZTREE/s.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.
In URL , type in the Path where docoument is stored in Mime .

Similar Messages

  • HT1338 My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    Hi ...
    Checked to see how much free space there is on the startup disk lately?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides
    If disk space is not the issue, booting in Safe Mode deletes system caches that may help.
    A Safe Mode boot takes longer then a normal boot so be patient.
    Once you see the Desktop, click the Apple menu icon top left corner of the screen.
    From the drop down menu click Restart.
    See if that makes a difference ...

  • Forced open word document when value for merged field required in document is blank

    Is there any way that I can make a word 2010 document open? The word document contains fields which are linked to a window form fields which have values input by users which then are saved to the database and also merged into the document's fields. In other
    word, when the controls (per example a textbox) in the windows form have no value input into them, the word document will not open.
    Thank you in advance

    Hello Amy12,
    Your requirement is still not so clear to me. So I assume you just want to load a Word Document inside WinForm application:
    You can refer this article
    http://www.codeproject.com/Articles/3582/Word-Control-for-NET
    By the way, webbrowser control can also help you open a word document, see MSDN article here:
    https://support.microsoft.com/kb/304662?wa=wsignin1.0
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Opening word documents

    I was told when I purchased iWork last week that I would be able to open word documents that were sent to me via email. How can I do that?

    maralyala,
    Note that Dennis' solution will result in ALL Word files opening in Pages, as he says.
    If you only want to open the occasional Word files in Pages, right-click or command-click on the file and choose "Open With" from the contextual menu that pops up next to the document. Select Pages.app from the list. If Pages.app is not on the list, click on 'Other' and scroll to Pages.app in your Applications folder.
    You can do this on the icon of the Word file that appears in your email or after saving the Word file to your Mac.
    Good luck,
    Terry

  • How to open word document form html container url iam getting internal_error while opening file

    Hi all,
    By using below code i am able to download word document file from html container. But before downloading i need edit these document to add Macro.
    I am unable to open word document.
    CREATE OBJECT G_HTML_CONTAINER
          EXPORTING
            CONTAINER_NAME = 'PDF'.
       CREATE OBJECT G_HTML_CONTROL
          EXPORTING
            PARENT = G_HTML_CONTAINER.
    * Convert xstring to binary table to pass to the LOAD_DATA method
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            BUFFER     = LV_CONTENT
          TABLES
            BINARY_TAB = LT_DATA.
    data_tab = LT_DATA ).
    * Load the HTML
        CALL METHOD G_HTML_CONTROL->LOAD_DATA(
           EXPORTING
             TYPE         = 'application'
             SUBTYPE      = 'DOC'
           IMPORTING
             ASSIGNED_URL         = LV_URL
           CHANGING
             DATA_TABLE           = LT_DATA
           EXCEPTIONS
             DP_INVALID_PARAMETER = 1
             DP_ERROR_GENERAL     = 2
             CNTL_ERROR           = 3
             OTHERS               = 4 ).
    * Show it
        CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
          IN_PLACE = 'X' ).
    Before file download i want edit the file for that i am using below class.
    PROXY TYPE REF TO I_OI_DOCUMENT_PROXY.
    by using (get_document_proxy) method  getting proxy .
    call method control->get_document_proxy
    exporting
    document_format   = 'x'
    document_type      = 'Word.Document'
    register_container  = 'x'
    importing
    document_proxy     = proxy
    after these.
    call method proxy->open_document
    exporting
    document_url    = lv_url
    open_inplace    = 'x'
    hear i m getting retcode as INTERNAL ERROR
    can any one suggest me how to open document from html container.
    Thanks and reagards
    jogu yadav

    I got resolution
    Thanks and regards,
    Jogu yadav

  • HOW TO OPEN WORD DOCUMENT FROM JAVA???

    hi everyone! Can you please help me to come with this problem? Let me to set my main target I want to achieve:
    1) In my program user should first press a button;
    2) Then already created Word Document should be opened (I DO NOT NEED to open that Word Document in Java or something like JField). Just simply it should be opened as a Microsoft Word Document.
    I DO NEED YOUR HELP! PLEASE HELP ME....!

    Running cmd using the exec is also a windows only solution, there is no "more" or "less" it that solution compared to the rundll.
    Since word is a windows format its pretty obvious that the application is ran under windows platform.
    If you are running on a different platform (maybe using open office you can open word documents, i'm not sure) you might want to use the JDIC library (https://jdic.dev.java.net/) which enables you to open/edit/browse such files using the default viewer/editor/browser of the system you are working on.
    Look at the org.jdesktop.jdic.desktop.Desktop object for these methods.
    You can also find the Desktop object in J2SE6 but its still in beta.

  • Can't open word documents in Pages since updating to Yosemite

    Since updating my software to Yosemite I cannot open word documents in pages anymore. I can open these word documents in preview to at least look at them, but this is not very helpful.
    Also, is anyone else experiencing a serious slow down. My Macbook is choking, and I wonder if there is anything that can be done to improve the speed.
    Thanks in advance for any insight/ support you can offer!

    Be sure you are saving your Word documents on the PC for a Word version supported by Office 2004 X. The latest version of Office for the PC uses a file format that is no longer compatible with older versions of Office.
    PC attachments have icons that do not carry any information that Mac applications use to determine what application opens a document. Drag the document from the email application to the Desktop. Select the icon and press COMMAND-I to open the Get Info window. In the section labeled 'Open with' select Word from the drop down menu, then click on the Change All button. This should associate all similar documents to the Word application on the Mac. Word documents on the Mac also use the '.doc' extension. If the transferred file does not have the '.doc' extension then it doesn't hurt to add one.

  • Unable to open word document in CV02N

    Hi Guru's
    Am unable to open word documents in CV02N & CV03N.
    While i try to open word document which is been already uploaded,Am getting the message as                                                       "26.112 bytes transferred" but document is not getting opened while a temporary files are getting created in C:/.
    I av done complete settings in DC20 & DC30...but stil unable to open word documet.
    Kindly help me to resolve this issue..
    Regards
    Bhanu

    Hi,
    Below are the work station application settings done for word document
    WS application:  DOC
    Description : Win word 6.0
    Archive identification:  *
    File suffix for appl.: doc
    File format : .doc,.docx
    MIME type: application/mswinword
    Start Authorisation is Enabled.
    PC     DOC      1     Winword 6.0     wwiexe32.exe
    PC     DOC      2     Winword 6.0     wwiexe32.exe
    PC     DOC      3     Winword 6.0     wwiexe32.exe
    Regards
    Bhanu

  • Open word document in jsp

    I have a jsp file and i open a new page(word document) with a link in this jsp page. Text messages are viewed correctly in WS-Word but there is a problem for images...
    1 _ How can i solve this problem?
    2 _ After opening word document, if opened word document is saved to anywhere of computer, how can i know address location of it in jsp?
    First File (a part of code):
    <a style="cursor: hand;"
    onClick="window.open('.../word.jsp','','height=400,width=600,scrollbars=yes,resizable=yes')">
    test link14 - open word file
    </a>
    Second File : (word.jsp) All of the code...
    <%@ page contentType="text/html;charset=windows-1254"%>
    <%
         response.setContentType("application/msword");
         response.setHeader("Content-disposition","attachment;filename=firat_WordDoc.doc");
    %>
    <%@ page language = "java" %>
    <html>
         <head></head>
         <body>
              <img src="car.jpg" width="100" height="100" border="0" alt="car"/>
              <br>
              test text...
         </body>
    </html>
    In second jsp file (word.jsp), "test text..." are written coorectly to word document named firat_WordDoc.doc but car.jpg is not viewed

    You wont be able to see it as becoz all you are doing is asking teh browser to paint a JSP [HTML] Page and asking it to open in the format msword.
    Save the word document and open it in textpad or notepad, you will see that the HTML is embedded within the Word Document rather than binary data. And you can see that the Image will aso be a IMG tag with refeence to the car.jpg.
    In order for you to do this either consider
    1. Using full URL in the Image tag.
    2. Using COM Bridge [JIntegra] License Software to build a new Word Document at runtime and then paint it.
    3. I think POI is free ware to do this.

  • Pages '09 won't open Word documents since installing Lion

    Since installing Lion I can no longer open Word documents. I get the following window
    My intel iMac is just a year old and all software is current, both Lion and Pages.  If I transfer the word documents to my 4 year old Macbook running the same Pages and Snow Leopard the files open as they should.  Can anyone suggest a solution.  I would be very grateful.  Thanks.

    That's what I have done, but then I am a long term Apple user and wised up years ago.
    Rodney Boyce wrote:
    "You can't open the application Microsoft Word because Power PC applications are no longer supported."
    That does sound like you are simply double clicking on the exported .doc file which will open Word.
    Try dragging it onto Pages or right mouse clicking > Open with…
    I installed Lion on an external Hard Drive so I could still get my work done in Snow Leopard.
    Peter

  • Open word document from oracle forms 10g

    Hi,
    Could any one please guide me how to open a word document from forms 10g on client machine (windows). My word document resides on application server (unix).
    Thanks for the help in advance.

    I tried that, but it doesn't work.
    What I have done is, I have written a java code that has a function ope_word that opens up a word document. I have created jar out of it called wordbean.jar.
    Add this wordbean.jar in $ORACLE_HOME/forms/java directory and also added in the formsweb.cfg file (archive_jini=wordbean.jar)
    Then I created a form and usinf fbean.register and fbean.invoke functions of forms, I am trying to call wordbean.jar.
    F.bean.register is registering all the components of wordbean.jar but it is not opening the word document.
    Could you please help ??

  • I cannot simply open Word documents. I am forced to save them in order to view them.

    In firefox, IE, and chrome, I try to open Word documents and am forced to save them in order to view them. I do not get the box that asks whether I want to save or open (and yes, I have the option to always ask checked in my settings). When I find the document in my folders, it tells me I'm in protected view when viewing my documents. This has only started recently. The only thing new I've done to the computer recently is update firefox. However, this problem is occurring in all my browsers.
    (I do not have this problem opening other files, like PDF. I still get the option to open or save with files other than Word documents.)
    I have run my Sophos antivirus and have found nothing. I have suspected rookit, but hope it is less serious.
    I also do not wish to download any new programs in order to fix this problem.
    Thank you!

    Try upgrading to the most recent version of Firefox.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    Please report back soon.
    So you don't receive any popup window asking you to save or view the document? The download just begins all by itself.
    <b>NOTE: </b>Even if you select to only view the document, since Firefox has no built in Word viewer, you'll end up downloading it anyway. The only difference is that it will be downloaded into the temporary memory of your computer.

  • Got errors when trying to open word document with Office Web App Server and customized WOPI host

    I am configuring the Office Web App Server with our ASP.NET MVC WOPI host based on this example. https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6. While both the OWA server and WOPI server has been set up and I can use Excel and PowerPoint
    app to open and edit xls and ppt file now, there are problems opening word documents no matter I enable or disable the editing function of OWA server.
    When I open a word document while enabling editing I got this error:
    If I disable editing I got this message:
    I have tried several file so I thought it is not the files' problem. Also I didn't find any exception in the log of OWA server. 

    Hi Gary Jiang,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing issues about
    apps for Office.
    Based on the description, it seems that you got an issue when you deploy the code sample. If I understood clearly, I suggest that you contact the author of the code sample from the "Q and A" tab.
    Also if you have the question about WOPI, I suggest that you get more effective response from
    Office
    Protocols forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Opening Word documents with Appleworks

    I often receive Word documents as email attachments (though my hotmail account). I can download these Word documents to my desktop but when I click on them to open them I get an offer to purchase MS Word (which I do not have). I would like to be able to simply open the Word documents with Apple works--and I am hoping I can just click on them and have that happen automatically. But it doesn't. I have tried opening Appleworks and going into the wordprocessing program and then opening the Word document through that, but it only is successful part of the time. What can I do? I would like to have these Word douments open automatically in Appleworks but every time I click on them (i.e., their icon on my desktop) I get that advertisement from Microsoft asking me to buy Word. Is this ad blocking a normal function of Appleworks that would otherwise allow me to open Word documents with a click? And in any case, how can I proceed?

    The ad for Word is almost certainly being tacked on through or at Hotmail (taglines or adware from Hotmail? Hoodathunk .....) ; it sure isn't coming from AppleWorks or from anything on your own system, unless you have that demo copy of Office still lurking somewhere. I suppose it could come from that, somehow.
    Assuming you can get a clean attachment downloaded to your Desktop from Hotmail, the procedure for having what you want to happen automatically is fairly straightforward and, really, has nothing at all to do with Appleworks. Try the following:
    --> Select (highlight) one of those downloaded .doc files from Word, then
    --> use the Finder's Get Info command (⌘-I). In the window which appears,
    --> see the "Open with" section, and set it to AppleWorks.

  • Cannot open Word document files in a Portfolio

    I have set up a portfolio with multiple file types. I can open Excel and Power Point files within the portfolio without a problem. When I try to open Word documents it tells me that "Acrobat cannot open this file attachment because your pdf file attachment settings do not allow for this file type to be opened. I went into preferances and checked to see if the box was checked in "trust manager" to allow files other than pdf to opened. It is checked but I am still unable to open word documents in the portfolio for some reason.

    Acrobat cannot open Word files. Have you tried opening the files from within Word? If so, most probably you have a file association problem.

Maybe you are looking for

  • Jtable IntegerEditor

    I have downloaded a code for table cell editing from sun site. The code is as follows: * NewClass.java * Created on July 30, 2008, 11:35 AM * To change this template, choose Tools | Template Manager * and open the template in the editor. package tabl

  • [JFileChooser] How to get the local network servers list?

    Hi, i try to use a JFileChooser (and its FIleSystemView) to retreive the list of local network computer. In the UI, i can see it but i don't manage to get that list outside of the jfilechooser. When I do : new File(\\\\Server\\Directory).list() I hav

  • Source System Job

    Hi, I am loading data from CRM system to BI system. Initially I have loaded data from datasource to PSA and PSA to DSO. Data was successfully updated from datasource to PSA and PSA to DSO. After that I have checked the data records in datasource and

  • Palm sync with iCal and Address

    I have recently bought a new computer and since I have lost the installation CD of my Palm, I have down loaded the drivers from their web page. It seems to sync well, but it's not, because neither my contacts or my calendar are being synchronized! Do

  • Failed to decrypt OHS_ID cookie value. Bailing

    Hi I'm getting in a couple of HTTP 500 error with the following line in the error_log Failed to decrypt OHS_ID cookie value. Bailing with Internet Explorer with 9iAS 9.0.2. I've installed the latest patches (9iAS 9.0.2.2 Core) and it doesn't resolve