How to open Word document in Forms Web Version

In the Client-Server version of Forms 6i, we open a Word template by executing the Host command like below,
host('WINWORD.EXE'||' '||ltrim(rtrim(v_new_filename)));
How do I execute the same in Web version to open the Word template?
Thanks in advance.

Hi,
I have gone thorugh the examples on OTN. Here's my requirements :
In our case we are opening a Word template file from the server machine, making some changes, and saving it back to the server machine. The name of the template file, the location to be saved is all internally handled by forms. In the client-server version, allthe user does is hit the Save button and close the Word application.
In the Web version, I can open the template file in the browser from the server. The user makes the changes & is then prompted to save it to his client machine. After that the user closes the browser & then has to click on a save button which moves the file from the client machine to the server.
This extra process of saving the Word file to the client machine bothers me as the users can make changes/delete the file on their own before hitting the Save button on the form. BTW, I have borrowed the code mostly from the OTN website.
So is there any way to avoid this step to saving to the client m/c and then moving it to the server. Thanks.
I am running forms 6i on 9iAS on WIN 2000.

Similar Messages

  • 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 in labview

    Hi,
    I want to open word document in labview,well i have done that.
    I want to display only the page part,don't want any editions,formatting to be done.
    please suggest me solution if any.

    How are you displaying your Word document, have you achieved that already?
    As far as I know, there is only one way to display Word documents and that's through the browser ActiveX interface:
    Using the Microsoft Web Browser control to embed a Word Document in LabVIEW
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

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

  • Open word document in forms version 6

    Does anyone have a code snippet to open an existing word document through forms. I have a user document which I would like to open from my forms menu.

    hello,
    Try use HOST command to open Words and your document. It works fine for me on Excel.
    sample :
    declare
    Path varchar2(100);
    file varchar2(50);
    begin
    path:='c:\program files\microsoft office\office\excel.exe ';
    file := 'o:\ssd\tools\albook.xls';
    path:= path | | file;
    host(path);
    END;
    null

  • How to open word document directly using ole2 and ole containers

    Hello
    i am using ole conatiners....in forms 6i. i want o open word document directly when i click a button....
    i have tried host....ole but word opens .....i want the document to open at once.....
    what should i use /set
    plz tell by host command and ole2 as well
    its urgent.....
    thanks

    Try this code, Hope this will work.
    declare
    item_name varchar2(80) := 'letter';
    item_id item;
    verb_index_str VARCHAR(20);
    verb_index PLS_INTEGER;
    verb_cnt_str VARCHAR(20);
    verb_cnt NUMBER;
    verb_name VARCHAR(20);
    loop_cntr NUMBER;
    begin
    item_id := Find_Item(item_name);
    IF Id_Null(item_id)THEN
              message('No such item: '||item_name);
    ELSE
    verb_cnt_str := Forms_OLE.Get_Verb_Count(item_id);
    verb_cnt := TO_NUMBER(verb_cnt_str);
    FOR loop_cntr in 1..verb_cnt LOOP
    verb_name := Forms_OLE.Get_Verb_Name(item_id,loop_cntr);
    -- message(verb_name);
    -- message(loop_cntr|| ' '||verb_name);
    IF verb_name = 'Open' or Verb_name = '?E?'THEN
    EXEC_VERB(item_id,verb_name);
    END IF;
         end loop;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('Error: '||TO_CHAR(SQLCODE)||' '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE;
    end;

  • How to open word doc. from forms 10g

    hi all
    i am trying to open word doc. from forms 10g using ole2.
    but it is not working.
    basiccaly this command is not working
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    can anybody help
    thanx

    I found this searching this forum and it works..however, my issue is to open up Microsoft Word passing in data from a query.
    I am working on Forms 10g
    DECLARE AppID PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\winword.exe C:\test.doc',
    DDE.APP_MODE_NORMAL);
    END;

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

  • How to display word document attched to web template

    Hi,
    I have attached a word document to a web template in the web app. designer using menu option Web template --> documents.
    When I use web item "Single document" or "Document list" in my web template this word document does not show up. Did I miss a step here?
    Also, there were certain documents which were created directly as "documents for navigation status" but now, even after deleting them, the link still shows up??
    Regards,

    Hi Rumy,  you will need to create a link to the technical object's documetation. 
    Let me know if you have questions....
    Feel free to award the points to me...
    Ken

  • How to open Word Document using java?

    Respected Sir/ Madam,
    I am doing my project in Network Security using java. I have to transfer the files from server to the client. Each transferred file should have some of the access privileges such as read, write and exeucte. If the transferred file is a word document means then automatically the client should open Microsoft word and if the file is having Read Permission alone then the save, Save As, cut,copy, paste options in the MS - Word should be disabled. This is similar for all the files that i have transferred. That is if the transferred file is excel, audio, video,txt file the corresponding application should be opened properly. How could I acheive this. If the file is having write permission then if the user clicks the save option then the contents of the file should be saved in the server machine not in the client machine, Could we achieve this???? Can anyone help me regarding this? Please give me your views about this query?

    Respected Sir / Madam,
    Thank you very much for your reply. Could we use Microsoft API inside java program to achieve my doubts?? Could U explain it more????

  • How to open word document from application server?

    hello ,
    I want to open a word document that is placed on the application server.
    the function module 'ws_execute' works fine for displaying documents placed on ur local file system. But if i want to open from application server, what needs to b done?
    i m referring to the following demo program 'SAPRDEMOOFFICEINTEGRATION'
    is this the correct reference or there is some other way to do the same?
    kindly help.
    Regards,
    Roshani

    Hi Roshani,
              The solution is like this.
    1> Execute - this is the solution to your program. The file is generated and put in the Application Server for the data to be sent by some means to the intended Place.
    2> To Display/View - This is for the person (who runs the program) to view if the output generated is correct or not.
             So to accomplish this use the same internal table for both Open Dataset and Gui download.
    Open dataset puts data onto the Application server and Gui_download puts the data onto the Desktop or Presentation server for the user to see the data thats fetched.
    So use them as directed to achieve the desired output.
    Reward Points.
    Thanks,
    Tej..

  • How to open word documents

    What app is best for opening a word document?

    The most usable app for opening Word docs is definitely Pages. It is made by Apple and is $10.
    If you simply need to view (and not edit) a Word doc, you can simply email it to yourself. Open the email on your iPhone and tap on the attachment and you will be able to see your document.

  • How to open "word" document

    I had some old Word documents on a Dell laptop that I wanted to view on my iMac.  Using a USB drive, I successfully transferred the files from the Dell to the iMac.  Some of the documents open up normally for viewing, etc.  Others do not.  A Pages box pops up and says the document can't be opened.  These are all Word documents, so I'm puzzled why some will open and others won't.  Is there a way to convert these "problem" documents to jpegs?

    These are old Word documents 1999-2000 mostly.  I only have Word on the laptop.  It's old and I'm planning on "decommissioning" it, if you catch my drift.  As I said, some of them open without any problem, while others do not.  What's a fella to do? :-)

  • PARALLEL WORK IN AN OPENED WORD DOCUMENT AND FORMS 9i

    Hello,
    Our customer want to have an enhanced integration of the Forms application and
    MS Word. Currently, he opens an existing Word-file from a Forms form, MS Word
    opens, he edits the Word file, closes it, and goes back to the Forms
    application.
    The point is, that while the Word file is being opened, he wants to be able to
    go back to the Forms application do some necessary things, and then go back to
    MS Word where his word file is "waiting". Actually, he needs the possibility to
    switch between Forms 9i application and MS Word.
    The integration with MS Word is being done using WebUtil 1.0.6. The call to MS
    Word is done using WEBUTIL_HOST.blocking. I also tried to call MS Word using
    CLIENT_OLE2-Procedures but again I'm not able to go back to the Forms
    application.
    Is it somehow possible or is there any workaround how to enable the "parallel"
    work in Forms application and MS Word?
    Thank,
    Dimce

    Hi Dimce,
    Okay. approach in the right direction. In order to get forms to wait executing the trigger code while in non-blocking mode, create a callback scenario. This is out-of-the-box webutil functionality (please read the webutil manual for details).
    In short,
    1) create a callback trigger at forms level
    2) move all code that fires after you call MS Word to the call back trigger. This code is then executed whenever MS Word is calling back to forms.
    3) use webutil_host.nonblocking_with_callback instead.
    Regards,
    Harm

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

Maybe you are looking for

  • Error while invoking the WSDL service of EBS from BPEL process

    Hi Team, when we are calling webservice client to call WSDL service which is published in Oracle EBS integrated SOA Gateway from BPEL process. After invoking, we are getting the below error <bpelFault><faultType>0</faultType><remoteFault xmlns="http:

  • IPod cannot be updated...required file cannot be found

    I have the latest iPod software and iTunes. When I plug my 5G ipod into my computer, after it transfers a few new songs, I get the following pop-up message: "The iPod 'name of iPod' cannot be updated. The required file cannot be found." When I click

  • I've bought a gift card but the code doesn't work. What do I have to do now?

    Somebody told me to send an email to Apple but I don't really know how. What should I say and where can I do that? Also, what should I write? I'd go back to the store but they couldn't do abything so they threw it away. That means I don't have the co

  • Bitmaps in a labview report?

    Hi all, I have been developing an application for major diesel engine control and testing and have been using the new reports' vi's in Labview to generated printed reports of a given run. We would now like to include a graphic in the report (eg a log

  • How do I get Itunes to reset my security questions

    I forgot the answeres to my security questions. I bought a new a ipod. I need them now and i cant buy anything. How do I get Itunes to reset them for me. It seems hard to contact them. Email would be best if possible.... Thanks for any help! Im getti