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;

Similar Messages

  • Open Word Doc from form in web setting not client/server

    Hello, I am new to form. I need to open a word doc (on client PC )from Oracle Form by a button click. I did some research online and looks like Client_Ole2 is the package I need. But when I looked into my Build-in Package (in forms builder), I only see OLE2, TEXT_IO etc. So when I try to declare a variable which is CLIENT_OLE2 like some post suggest, I got error message "identifier CLIENT_OLE2.OBJ_TYPE must be declared".
    So is that means that I need to install/setup WebUtil on my env to get this Client_Ole2 to show up on Form Builder?
    Thanks for help, please advise.

    I found the way to add webutil.pll to attached Libraries.This is the wrong way. Open the webutil.olb in the Forms Builder. Then open your form you want to add the Object Library too. In the Object Libraries node of the Object Navigator - double-click on the WEBUTIL node. This will open the Object Library properties window. Click on and drag the WEBUTIL entry to the Object Groups node of your Form. You will be prompted "Do you want to copy the object or subclass it?" Click on the Subclass button.
    Subclassing is a Forms method that allows you to share a single source of an object/code between multiple Forms. It is Forms' way of implementing inheritance.
    I also copied them to /forms/java directory too.This is not necessary. I recommend you delete the files you copied to the /forms/java directory. Forms will find the libraries if the .../forms directory is listed in your FORMS_PATH environment variable (see the default.env file). The /DevSuiteHome/forms directory should be the first directory listed in the FORMS_PATH variable.
    Remove path?". So I selected Yes. But when I run form, I got FRM_40039: Cannot attach library webutil while opening form ......".The fact that you are getting this error indicates that the /forms directory is NOT part of the FORMS_PATH.
    If I choose No to keep the hard code path, then if I deploy the form to testing server or production server, it will become problem! Right? How to solve this?Double-check to ensure it is listed. The variable entry should look something like:
    FORMS_PATH=D:\DevSuiteHome_1\forms;<any other directories you want to be part of your path seperated by ";">Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Problems opening Word docs with form function

    Does anyone know how to open a Word doc & keep the forms function? I have to fill out quarterly reports. When I open this type of Word doc, Pages eliminates the checkboxes and text boxes. A pain point, but Word doc is still usable.

    Hi,
    Since the issue only occurs to Word for Mac, I'm not familiar with the mechanism how it opens a file, we mainly supports Office for Windows in this forum. Please post the question in Office for Mac forum for further assistance:
    http://answers.microsoft.com/en-us/mac
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Why can't I open word docs from mail anymore?

    Am on 10.8.2 on Macbook Air and doc and docx attachments tell me to choose application to open the doc with and won't open when I choose "Word"
    These used to be opened automatically by Word, not I have to manually choose Pages as the only option
    Am I missing something?

    Csound1 wrote:
    Andy Mt P wrote:
    Don't see how I can choose the file from within Word as it's not saved anywhere?
    I have now discovered if I drag the file from mail on to the WORD icon in the doc it will open....seems much clumsier than the old option of clicking on the file to open it
    Opening attached pics seems to require the same action as well using iphoto.
    A bit of a step back in my opinion....
    Save the word file from the email to your Mac (have you never saved an attachment before)?
    Post back when you can do as I asked you to.
    And remember that we are trying to find out what is wrong, don't be so snappy!
    haha...point taken. Wasn't feeling 'snappy' when I typed it, not intended as such...!
    If I save it somewhere as you suggested I can then open it
    also, as I mentioned if I drag the doc onto WORD in the dock it opens that way as well

  • How to open an URL from Forms in blocking mode?

    Can anyone tell me if it is possible to open a website from within forms in blocking mode? The reason why I have to use blocking mode is that the user has to take some action in the website and has to end that session explicitly with a button on the website. After that, a file is written on the server that is needed for further action. Without that file the process can't go on.
    I use Forms (32-bits) versie 10.1.2.0.2.

    Thanks for your answer.
    Your suggestion is only possible with a timer-trigger (correct me if I'm wrong). And that's the point.... The time the user can act in the website is unlimited. So, how to set up a timer-trigger? Another work around is to make a process that works at some time and searches for the files on the server. But that's not what we want to do.
    Does anyone have another idea?

  • This operation has been canceled due to restrictions in effect....opening Word docs from link in web page

    It's the ahla.org website.  It has both pdf files and Word docs.  The pdf links open in the browser or Adobe but the Word doc links open the option at the bottom of IE11 that just says "Open" or "Cancel".  When I choose
    open, it gives the error about policy restrictions or something similar depending on if it's Word 2007 or 2013.  If I could even find an option to have it "Save" and open after download that would be helpful.  I can right click the link
    and choose save as but this is an office full of attorneys and they can't find the download folder afterwards.
    This isn't the issue with Chrome being installed/uninstalled because it does it on computers where it's never been installed.  It's not a group policy setting as it does it at the office or home PC.

    Hi,
    ahla.org redirects to
    https://www.healthlawyers.org/Pages/home.aspx
    ... its a mess
    eg. the login link is http://admin.healthlawyers.org:8080/_login
    any error message with "Restriction" in it is from Group Policy.
    what you can try
    Tools>Internet Options>Security tab, click "Reset all zones to default"
    Trusted Sites icon, sites button, remove ANY reference to
    http://ahla.org or http(s)://www.healthlawyers.org (IE has security restrictions preventing navigation between sites of lower integrity).... Other userAgents do not use the same security model as MSIE.
    the https protocol (secure web sites) works in any IE security zone.... If a site uses https, you do not have to place it in the Trusted sites list. It should work (encrypt) just as well in the internet zone (default).
    Hover the mouse over the pdf/doc hyperlink... its uri will appear in the status bar or at the bottom of the IE window... note its address. IT MUST point to the healthlawers.org domain. It should also be using the same protocol as the current web page. If it
    uses the https protocol, check "Internet Options>Advanced tab, uncheck "Do not save encrypted files to disk"
    As I said.... it is likely that the above settings are controlled by Group Policy.
    Rob^_^

  • Re: How to open Word Doc in e-mail attachment

    I use iworks '09. I received an e-mail with a MS Word attachment that I was unable to open-stated "this document was created with an unsupported version of Word.  Must I buy MS Office for Mac.  Or will NeoOffice or Open Office open the file?

    I ditched MS Office over two years ago for NeoOffice and it has been able to open every word doc's or pps that have come my way.
    Dennis

  • How to open custom.pll in forms 10g

    dear all
    can you send steps to open custom.pll in forms10g

    Hi
    1. Open Oracle Form Builder
    2.Select PL/SQL Libraries from Form Builder
    3.Open the CUSTOM.PLL from your local machine using navigation path : MENU > FILE > OPEN > SELECT CUTOM.PLL FROM LOCAL M/C
    4.After opening the CUSTOM.PLL you can change the CUSTOM package body as per your requirement.
    HTH
    sd

  • How to open a scanner from Forms

    HI,
    Can any one tell me how can I open a scanner from the click of a button . I know u can use the HOST command to call an exe file . But its not working . Please let me know if any one has an Idea .
    Thanks in advance.

    hi
    use OCX control if u are using Forms6i
    then call some packages
    1) AdminLib_CONSTANTS
    2) ImgeditLib_CONSTANTS
    3) Wang_Scan
    4) Wang_Admin
    5) Wang_Edit
    6) Wang_Scan_Events
    then call from button
    declare
    my_ole OLEOBJ;
    dummy number;
    begin
    forms_ole.activate_server('scan');
    my_ole := forms_ole.get_interface_pointer('SCAN');
    if Wang_Scan.ScannerAvailable(my_ole) <> 0 then
    dummy := Wang_Scan.StartScan(my_ole);
    else
    message('no scanner found !');
    message('no scanner found !');
    end if;
    end;
    Rizwzn

  • 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 open Word doc stored in BDS?

    I faced the problem using BDS. I have table with stored object_keys of Word documents stored in BDS. I can retrieve url for this docs using METHOD CL_BDS_DOCUMENT_SET=>GET_WITH_URL. But how can i open this document using url or something else?
    For example, 'WS_EXECUTE' don't understand BDS-URL as a doc adress.
    Thanks to all who will try to help me.

    Using BDS_OBJECT_DISPLAY i get runtime exception CX_SY_DYN_CALL_ILLEGAL_TYPE. I use BDS in this way. May be  I don't create BDS doc in a proper way?
    *&      Form  SAVE_FILE_RETRIVE_ID
    *       Locate File in BDS Repository Retrive ID
    FORM SAVE_FILE_RETRIVE_ID CHANGING OBJ_KEY TYPE SBDST_OBJECT_KEY.
      DATA: LV_COMPON TYPE BAPICOMPON,
              LV_SIGNAT TYPE BAPISIGNAT.
      LV_COMPON-DOC_COUNT = '1'.
    *  lv_compon-comp_count = '1'.
    *  lv_compon-comp_id = 'Employee Image'.
      lv_compon-mimetype ='application/x-oleobject'.
    *  lv_compon-comp_size = '1024'.
      APPEND LV_COMPON TO GV_COMPON.
      LV_SIGNAT-DOC_COUNT = '1'.
    *  LV_SIGNAT-DOC_ID = 'IMAGE'.
    *  LV_SIGNAT-DOC_VER_NO = '1'.
    *  LV_SIGNAT-DOC_VAR_ID = '1'.
    *  LV_SIGNAT-DOC_VAR_TG = 'ORIGINAL'.
    *  LV_SIGNAT-COMP_COUNT = '1'.
    *  LV_SIGNAT-PROP_NAME = 'IMAGE'.
    *  LV_SIGNAT-PROP_VALUE ='IMAGE'.
      APPEND LV_SIGNAT TO GV_SIGNAT.
      CALL METHOD CL_BDS_DOCUMENT_SET=>CREATE_WITH_TABLE
        EXPORTING
    *     LOGICAL_SYSTEM  =
          CLASSNAME       = 'DOC'
          CLASSTYPE       = 'BO'
    *     CLIENT          =
          COMPONENTS      = GV_COMPON
          CONTENT         = GV_T_FILE
       CHANGING
          OBJECT_KEY      = OBJ_KEY
          SIGNATURE       = GV_SIGNAT
       EXCEPTIONS
         INTERNAL_ERROR  = 1
         ERROR_KPRO      = 2
         PARAMETER_ERROR = 3
         NOT_AUTHORIZED  = 4
         NOT_ALLOWED     = 5
         NOTHING_FOUND   = 6
         OTHERS          = 7
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " SAVE_FILE_RETRIVE_ID
    *&      Form  OPEN_TASK_DOC
    FORM OPEN_TASK_DOC USING OBJ_KEY TYPE SBDST_OBJECT_KEY.
      DATA: LV_T_FURLS TYPE BAPIURI OCCURS 1,
                LV_URL TYPE BAPIURI,
                FILE_URL TYPE URL.
      CALL METHOD CL_BDS_DOCUMENT_SET=>GET_WITH_URL
        EXPORTING
    *      LOGICAL_SYSTEM  =
          CLASSNAME       = 'DOC'
          CLASSTYPE       = 'BO'
    *      CLIENT          =
          OBJECT_KEY      = OBJ_KEY
    *      URL_LIFETIME    =
        CHANGING
          URIS            = LV_T_FURLS
    *      SIGNATURE       =
    *      COMPONENTS      =
        EXCEPTIONS
          NOTHING_FOUND   = 1
          ERROR_KPRO      = 2
          INTERNAL_ERROR  = 3
          PARAMETER_ERROR = 4
          NOT_AUTHORIZED  = 5
          NOT_ALLOWED     = 6
          OTHERS          = 7
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE LV_T_FURLS INDEX 1 INTO LV_URL.
    * LV_URL - url to the doc we need to display
      FILE_URL = LV_URL.
      CALL FUNCTION 'BDS_OBJECT_DISPLAY'
        EXPORTING
          URL                  = LV_URL
          MIMETYPE             = 'application/x-oleobject'
    *     DOC_TYPE             =
    *     DOCUCLASS            =
    *     FILESIZE             =
    *   TABLES
    *     CONTENT              =
    *     ASCII_CONTENT        =
    *   EXCEPTIONS
    *     DP_ERROR             = 1
    *     FILE_ERROR           = 2
    *     INTERNAL_ERROR       = 3
    *     EAI_ERROR            = 4
    *     OTHERS               = 5
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " OPEN_TASK_DOC

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

  • Best way to access Word doc from Forms 6i

    We have a requirement whereby the user can press a button on the form, and this starts up Word and opens a document. The user can update the doc, and save it, and on exiting Word, control returns to the form.
    I know that we can use DDE for this, but I don't want to do that.
    We want to restrict access to this Word document to only those people who have access to the form. I was thing about actually holdinh the word document in the database.
    What would people recommend?
    Is it better to use LOBS/BLOBS etc?
    Or should I be using iFS? What are the benefits of each?
    Many thanks in advance.
    Harry
    null

    i use openssh tunnel for x11vnc, then tightvnc at work (plus ssh in windows) to access, see the x11vnc wiki for info, i followed the info on this page for the ssh tunneling.
    Last edited by toxygen (2010-02-11 08:08:30)

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

  • 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

  • Changing the file format of spool output when scheduling a background job.

    Hello Experts, I have an issue. It is related to Spool output format. I created a job for one report program for which the output is a list output. I have added one recipient in the 'Spool list recipient' while creating the job SM36. After the job is

  • Mac Book Does Not See XP as Option On Startup with 'Option' Key

    After successful install of XP Pro, my Mac Book only shows the Mac HD on startup when I hold down the 'Option' key. Per instructions, this procedure is suppose to show both the Mac & Windows HDs and allow a choice at startup. Ant ideas how to fix?

  • What is the best mac for me? (budget: 1299$)

    What is the best mac for me? I will use it for: - Game programming and development - School research - Word proccessing - Presentations - Programming in Java - Programming in C++ - Programming Iphone games and Objective-C - Gaming So can you tell me

  • Automatic line break in table of contents?

    I have several long chapter titles that collide with the page number. Is there a way to set an automatic line break or something that will break the line at the same place? I could do this manually of course, but if I update the toc it would disappea

  • Load on XI

    Hi Experts, In my scenario ABAP client proxy to JDBC (Async), I will be getting 1,50,000 (1.5 records) and each record is having of size 1KB. Total ( Approximately )147MB of size of data has be input to XI. Could you please give answers to the below: