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

Similar Messages

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

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

  • 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

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

  • Can a 200 mb pdf nitro be converted in word document in trial version of acrobat XI pro

    can a 200 mb pdf nitro be converted in word document in trial version of acrobat XI pro

    Thank you Ajlan huda,
    Actually it is opening in Acrobat Reader and file is on my desktop too, but still it is not opening.
    I want to use Preflight feature of Acrobat Adobe and due to not able to open it i am unable to go with preflight option.
    Do you know any other solution for it ?

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

  • 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 Documents Since Mavericks 10.9.5 Update

    Since updating to Mavericks 10.9.5, I can no longer open Word documents that were created/edited between 8-27 and 9-18-14, and that I had opened 9-17 and earlier.  I receive the following message when I attempt to open a document:
    "Word cannot open this document.  The document might be in use, the document might not be a valid Word document,
    or the file name might contain invalid characters (for example, \ /)."
    I have Microsoft Word for Mac 2011, version 14.3.5., and a MacBook Air 1.8GHz, Intel Core i7, mid 2011.  Can you help?

    Anybody else experiencing this? No mention of effects on Quicktime in the 10.9.5 upgrade notes.
    Unable to duplicate your problem in random tests of my library. M4V (H.264/AAC/AC3/Chapter encoded) files continue to play normally in both QT 7 and QT X players. Anything special about your files or anything unusual happen during the system upgrade installation?

  • Cannot open Word document attachment in mail before sending.

    Cannot open Word document attachment in mail before sending.
    In Snow Leopard Mail 4, (Version 4.0 (1075/1075.2)) if I attach a word document to a message and, BEFORE sending the message, I double click the attached document to open it, to make sure it is the right one, I get the error "Mail was unable to save the attachment “Test.doc” to disk. Verify that your downloads folder exists and is writable."
    The attachment is mailed correctly and arrives at the destination, but the ability to verify an attached document before sending it is essential. This has worked fine in all previous editions of OS X.
    Any ideas?
    Thanks - Lawrence

    I have same problem. I've done the following testing to pinpoint where the problem lies and there are clues (see below):
    1. My machine had SnowLeopard installed "fresh" (i.e. disk reformat and installed cleanly)
    2. I have a comparison machine running Leopard (10.5.6) - essentially a mirror but with different OS
    3. Problem is triggered when creating new email, with a MS Word .doc attachment added. If you attempt to open the attached file in the mail (not yet sent) it produces the error message "unable to save file XXX.doc to disk. Verify that your downloads folder exists and is writeable"
    4.However, once the mail is sent, the recipient can open the attachment without problems.
    5. I have run Disk Utility and all permissions are correct. My downloads folder exists.
    6. The problem is not present in Leopard (mirror machine other than OS)
    7. I have uninstalled and reinstalled MS Office. Problem still present
    8. I have deleted and recreated the preference files for both MS Office and for Mail. Problem still present.
    And finally...
    9.The problem is confined to .doc files.It works fine for .pdf, .ods AND even for Microsoft .xls files.
    So it may be a MS Word problem triggered by Snow Leopard?
    Apple: if you can confirm this is a Microsoft problem it may be able to be reported to them as a compatibility issue?
    Hope this helps.

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

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

  • I can't open word document with pages

    I cant open word docuemtns with pages

    What version of Pages are you using? You may need to run Software Update (from the  menu).

Maybe you are looking for

  • Go_Item Built In Behaviour

    Hello All, In Forms 6i i am trying to push the control to a particular item which is not in canvas and the control goes to the next available item in the block sequence which is available in the sequence but doesnt gives/throws any error. But the sam

  • CE: Mapping from Component-Controller to Component-Interface

    Hi experts, how can I map the context of a component controller to the component interface? There is a predefined data link between them but I do not find any possibility to edit this link. Thank you for each hint, Christoph

  • Using IndexedColorModel with a non rgb colorspace

    Hi, I am trying to create an image for which I have an ICC colorspace defined, the raster of pixels and the IndexedColorMap. The Java indexedCOlorModel only appears to work with srgb. How can I put these elements togerther to create a BufferedImage.

  • I cannot resize the search bar

    The two headed arrow that is supposed to allow me to change the size of the search bar does not appear.

  • Security with proximty sensor IE: bluetooth phone or jump drive

    I know someone has done this using a bluetooth and applescript to unlock their computer when their phone is near and lock it when they walk away. Can this be done with the iphone or a jump drive? Anyone have the scrips to do so? What other devices wo