How to Open  a Word document using Developer Forms

Hi Buddies,
Can anybody help me out in this regard.
My requirement is like this.
In my developer Forms Screen i have one button named resume.
if i click that button then that particular persons resume has to be opened which is MsWord file(.DOC)located in server(Which is the database server).
So we have to launch the word with the required document using the Forms built-ins. The document path will be stored in my database.
Quick response will be appreciated.
Thanks in Anticipation
Regards
Kiran Kumar Jasti

This is a confused and confusing issue. There are no quick fixes. Bear in mind the following points:
Word is a client program. It can only open documents that can be seen from a client PC. If you cannot see your database server's directories from a client PC (and I would hope you can't) you cannot open that document.
what you are left with is creating a copy of that document, transporting it to the client realm, and then overwriting it back on the server after your user has finished with it (if they're editing).
there are many different ways of doing this, but they will probably involve writing an API in VisualBasic or Java. Alternatively you might look at Oracle's IFS.
This is not the right forum for a detailed solution - try the Developer forum (or IFS if that floats your boat).
Good luck, APC

Similar Messages

  • How to open a Word Document from Developer Forms

    Hi Buddies,
    Can anybody help me out in this regard.
    My requirement is like this.
    In my developer Forms Screen i have one button named resume.
    if i click that button then that particular persons resume has to be opened which is MsWord file(.DOC)located in server(Which is the database server).
    So we have to launch the word with the required document using the Forms built-ins. The document path will be stored in my database.
    Quick response will be appreciated.
    Thanks in Anticipation
    Regards
    Kiran Kumar Jasti

    Hi Kiran,
    host('winword.exe <pass ur resume path>');
    hope this could work out....just try...good luck
    Regards
    Thobula Rakesh

  • HI I'm having real trouble opening my word documents (using Office:Mac 2008)  Have tried repair disk options as I saw this advice on another blog, seemed to work for a while now its stared happening again.  Any help MUCH appreciated

    HI I'm having real trouble opening my word documents (using Office:Mac 2008)  Have tried repair disk options as I saw this advice on another blog, seemed to work for a while now its stared happening again.  Any help MUCH appreciated

    http://answers.microsoft.com/en-us/mac

  • How to open a word document

    hi all,
      How i can open a word document containing data by clicking a text in a smart form.
    Thanks,
    Ranjith

    Hi Ranjith,
    Sorry to disappoint You!!
    your requirement cannot be fullfilled as the end product of a smartform is expected to be an printout or at max and PDF document.
    you will not have an option for clicking and you cant achieve your task!!!!!!!!

  • How to open a word document in dynpro

    Hi experts,
    i am new to web dynpro, i have a problem that i need to open a word document from desktop in my screen. its not ALV or i dont have to upload the file but i have to OPEN the file..
    plz help
    Regards:
    Parteek

    Hi Manu,
    Follow these steps:
    1. Create CONTEXT with 2 attributes - UPLOAD & SHOW of type XSTRING.
    2. Add a "UPLOAD" element on the layout of screen & map it with UPLOAD attribute of context.
    3. Then Add a "OFFICE CONTROL" on the same screen & map it with the SHOW attribute of context..
    4. Add a BUTTON for Show Document/Open Document.
    5. Add 2 attrubutes in ATTRIBUTES tab of the dynpro application:
            i) DOCUMENT type IF_IOS_DOCUMENT
           ii) FACTORY    type IF_IOS_FACTORY
    6. On method of that button (SHOW)...enter the following code:
    DATA : refexp TYPE REF TO cx_ios_exception.
    IF wd_this->document IS INITIAL.
        wd_this->factory->get_document_proxy( IMPORTING proxy = wd_this->document  ).
        ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
      ENDIF.
      wd_this->document->opendocument( ).
    read context node
    DATA:
        node_file_upload                    TYPE REF TO if_wd_context_node,
        elem_file_upload                    TYPE REF TO if_wd_context_element,
        stru_file_upload                    TYPE if_second=>element_file_upload .
    navigate from <CONTEXT> to <FILE_UPLOAD> via lead selection
      node_file_upload = wd_context->get_child_node( name = if_second=>wdctx_file_upload ).
    get element via lead selection
      elem_file_upload = node_file_upload->get_element(  ).
    get all declared attributes
      elem_file_upload->get_static_attributes(
        IMPORTING
          static_attributes = stru_file_upload ).
      stru_file_upload-show = stru_file_upload-upload.
    set all declared attributes
      elem_file_upload->set_static_attributes(
        EXPORTING
          static_attributes = stru_file_upload ).
    7. Now add the following code to the WDDOMODIFYVIEW method (default method)
      DATA:
          office TYPE REF TO cl_wd_view_element.
    get the office control
      office ?= view->get_element( 'OFFICE' ).
      ASSERT ID sios_demo CONDITION  office IS BOUND.
    get the IOS interface
      wd_this->factory ?= office->_method_handler.
      ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.
    8. Run the application & enter a text file of word format in the File Upload.
    9. Press show button & it will display the code of that word file.
    Plz ask any queries if you face any problem doing the above code.
    & dont forget to mark Points.
    Regards:
    Parteek.
    Edited by: Parteek Arora on Jan 23, 2008 9:05 AM

  • How to open,view pdf document in a form with zoom in and zoom out functionality Please urgent

    Hi
    Anybody can help me with a sample code in c# to open a pdf document using forms and to give the functionality   zoom in and zoom out   with verticall and horizontal scroll bar. Please help
    Regards
    Pol
    polachan

    Hello polachan,
    you can find two sample projects with code at
    [1] and
    [2].
    [1]
    http://www.codeproject.com/Articles/579878/MoonPdfPanel-A-WPF-based-PDF-viewer-control
    [2]
    http://www.gnostice.com/nl_article.asp?id=159&t=How_To_Create_A_PDF_Viewer_in_PDFOne_NET_v2_x
    Regards,
    Bo Liu
    Developer-Hotline for MSDN Online Germany
    Disclaimer:
    Please take into consideration, that further inquiries cannot or will be answered with delay.
    For further information please contact us per telephone through the MSDN-Entwickler-Hotline:
    http://www.msdn-online.de/Hotline
    For this post by the MSDN-Entwickler-Hotline the following terms and conditions
    apply: Trademarks,
    Privacy
    as well as the separate
    terms of use for the MSDN-Entwickler-Hotline .

  • ** Problem in opening a word document using DDE.App_Begin *

    Hi All,
    I used this code in a when-button-pressed trigger in a button to open a word documnet:
    declare
    AppID PLS_INTEGER;
    filename varchar2(100);
    begin
         FILENAME := :FILE_PATH; -- :file_path has the full path to the word document foe ex. : D:\Copyf.doc
         AppID := DDE.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE filename',DDE.APP_MODE_NORMAL);
    end;
    But when I press the button it gives me this error in Microsoft Word:
    Word experienced an error trying to open the file.
    Try these suggestions.
    * <some suggestion>
    * <some suggestion>
    * <some suggestion>
    How to solve this problem?

    Thanx Magoo
    Dear Andreas
    I've creatred a table to store the word files paths that the user wants to attach to a parfent record!
    and then created a form to query all word-documents that is attached to that parent record to let the user open it
    Is your code benefit to me in that case?
    I tried to do it but the other one (Magoo's code) only open the CMD Prompt!
    Iam using:
    Form 6i: Version 6.0.8.11.3
    OS: Windows XP SP2

  • How to open a Word document in LabVIEW

    I would like to open use a Word document as a Help file in my LabView project.  I want it to open when the user clicks on a button.
    From what I have read, using ActiveX commands seems to be the way to do it, but I'm having real difficulty understanding these commands and the examples listed. It is probably quite simple but I just can't get my head around it. 
    Can anyone explain how to do it in simple terms.
    Thanks
    BD

    Hmm.. I only have Office 97 and 2003, so not sure if this will work with Office 2000.  Well, try to open the VI (I saved it to previous version 7.1), and if there are broken wires, do the following (see screenshots):
    1.    right click on Word._Application and go to Select ActiveX Class and Browse (the wording might be different since we're using different version of LabVIEW)
    2.1  it might take a while (a few minutes), but a little window will pop up with all the ActiveX libraries (I think all of them) on your computer.  Select Microsoft Word x.x Object Library.  The one on my computer is from Office 2003, so it's 11.0, I think Office 2000 is 8.0.
    2.2  check the Show Creatable Objects Only box, select Application from the list, and click ok
    3.    If there are still broken wires, go through each property and invoke nodes and reselect the function (functions are slightly different in different version of the library)
    4.   If there are still broken wires, click on the broken arrow and see what's wrong, if the error says something like "contains unwired or bad terminal", double click on the error to go to the problematic node, and create a constant on each empty input (sometimes older version library requires more parameters..)
    Hope this will work...
    See-Ming
    Attachments:
    OpenDoc 7.zip ‏285 KB

  • How to open a word document in safari?

    How do I open a Microsoft Word document on my ipad using Safari?

    I assume that the site is not optimized for iOS/mobile browsers, if that is the behavior that you are seeing. You could try downloading an alternative browser that identifies as a desktop browser like Mercury Browser. There is a free version that I am using right now. You can identify as a desktop browser by tapping the Settings Icon and choosing for User Agent in the lower right corner.
    Perhaps if the site recognizes the browser as a desktop version, it will work for this purpose. If it doesn't work, you have lost nothing but a little bit of time. If it does work and you like Mercury, you can purchase the full version.
    I have the Full version of Mercury, iCab Mobile, Atomic, Dolphin, and Google Chrome which will all identify as desktop browsers.

  • ASK - How to delete line space in Word document using oracle form

    Hi,
    I have 1 template word document.
    Inside the word document template :
    abcdefg
    [START_TERMS]
    [END_TERMS]
    bbbbbbbbbbbbbbbb
    currently, my program only can delete the statement [START_TERMS] and [END_TERMS].
    so the result
    abcdefg
    ----> space area
    ----> space area
    bbbbbbbbbbbbbbbb
    My expected result is
    abcdefg
    bbbbbbbbbbbbbbbb
    How to replace that two space area in oracle form ?
    Please advise.
    Thanks for your help.
    regards,
    Iwan

    Hi
    Here my code :
    Function DeleteWord(MyOwnSelection OLE2.OBJ_TYPE, MyWord VARCHAR2) Return Boolean Is
    MyArgs OLE2.LIST_TYPE;
    vReturn boolean;
    Begin
    vReturn := FindWord(MyOwnSelection , MyWord);
    -- Can't Find The word
    if vReturn = False Then
         Return False;
    End if;
    OLE2.INVOKE(MyOwnSelection, 'Delete');
    MyArgs := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(MyArgs, '0');
    OLE2.ADD_ARG(MyArgs, '0');
    OLE2.INVOKE(MyOwnSelection, 'SetRange', MyARgs);
    OLE2.DESTROY_ARGLIST(MyArgs);
    Return True;
    End;
    returnValue := WordFunction.DeleteWord(MySelection, '[START_TERMS]');
    Thanks and regards,
    Iwan
    Edited by: user1888509 on Jun 7, 2011 10:34 PM

  • How to open MS word document in browser window?

    Hi all
    Is it somehow acheivable to open a .doc - document in a browser window?
    If I link a .pdf - file from the document library in left navigation menu it opens in a browser window. If I do the same with a MS Word docuemnt it opens the Word application, but I want it to open it inside a browser. Can this somehow be done?
    Regards

    Hi,
    If you want open your document inside Browser, you can try the following settings:
    The setting that controls this behavior is located in Windows Explorer (not Internet Explorer) on the user's machine.
    Open “Windows Explorer”.
    Select Tools -> Folder Options... from the menu.
    Go to the “File Types” tab.
    In the “Registered file types list”, select the file you want to change the setting for (e.g. DOC).
    Click the “Advanced” button to open the Edit File Type dialog.
    There is a checkbox, Browse in same window, where you can specify whether the selected file type should be opened within the browser or launched in its host application when clicked on a web page.
    For more information, please refer to: http://support.microsoft.com/?scid=kb;en-us;162059
    Xue-Mei Chang

  • How to print a word document using java?

    Hi All,
    is it possible to write a java program that takes input and directs it to printer.
    I specifically want it for word document.
    i already have a program that works for images but not for word document.
    Plz guide me where i am wrong or help me with some links or code snippets.
    Any kind of help will be really appreciated.
    // program is below
    import java.io.FileInputStream;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.ServiceUI;
    import javax.print.SimpleDoc;
    import javax.print.attribute.DocAttributeSet;
    import javax.print.attribute.HashDocAttributeSet;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    public class Convert{
         * @param args
         Convert(){
              DocFlavor psFlavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
              FileInputStream fis = null;
              // Creates a new attribute set
              PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
              try{
                   fis = new FileInputStream("d:\\print\\new.txt");
                   System.out.println("doc taken...");
                   if (fis == null) {
                        System.out.println("No File");
                        return;
              }catch(Exception e){
                   System.out.println("No Such Doc..."+e);
              PrintService printService[] = PrintServiceLookup.lookupPrintServices(psFlavor, aset);
              //System.out.println("Default Printer: ");
              PrintService services = null;
              try{
                   services =     PrintServiceLookup.lookupDefaultPrintService();//ookupPrintServices(psFlavor, aset);
              }catch(Exception e){
                   System.out.println("print exp ");
                   e.printStackTrace();
              System.out.println("Default Printer: "+ services.getName());
              System.out.println(services+" services taken..."+services.isDocFlavorSupported(psFlavor));
              PrintService service = ServiceUI.printDialog(null, 250, 250, printService, services, psFlavor, aset);
              if (service != null) {
              DocPrintJob job = service.createPrintJob();
              try {
                   DocAttributeSet d = new HashDocAttributeSet();
                   // Doc doc=new
                        Doc doc = new SimpleDoc(fis, psFlavor, d);
                        System.out.print("doc prepared...");
                        System.out.println("printing starts...");
                        job.print(doc,aset);
                        System.out.println("printing done...");
              catch (Throwable pe) {
                   pe.printStackTrace();
         }else{
              System.out.print("else...");
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              new Convert();
    }

    anamupota wrote:
    JoachimSauer wrote:
    Desktop.print() is the simplest way. Everything else will get tricky really fast.I wonder if one could print .doc file though.Desktop.print() simply tells the OS to do whatever it usually does to print the file. If Word is installed, it should start word with the file as an argument and whatever parameter it takes to tell Word to print it.
    If you don't have anything installed that can view/print words files (or the correct entries are missing in the registry), then it won't work, of course.

  • Opening a Word document in a form layout html region

    Hi all,
    In an Interactive Report I use
    select '<img src="#WORKSPACE_IMAGES#'||package.f_get_document_type ( doc.id )||'" title="Document" width=20 height=20>'
    ) document
    from table
    to show an icon that eventually downloads (and shows) a word document.
    Now I have a form layout html region and I want to have the same icon\link to show a document.The document however is not in the same table as the rest of the page is based on.
    How can I show the document on this page?
    Kind Regards,
    Maurice
    Environment = Apex 4.0 database 11G
    Edited by: maurice.niezen on Aug 31, 2010 2:10 AM

    One way, create a hidden item, and return the value into it from your package (by having a computation that calls the function package.f_get_document_type(:P1_DOC_ID) . Let's say it's called :P1_DOC_TYPE
    There's a new item type in Apex 4, which is Display Image.
    When you get to settings in the item creation wizard, specify what the image is based on. From there, you can set it to be 'Image URL stored in Page item Value. Then on the source page, you can just specify the URL, #WORKSPACE_IMAGES#&P1_DOC_TYPE.

  • How to open a word document from OA page

    Hi,
    I have a requirement where in the file names are displayed in a table .When the user clicks on the file name the file should open .The docs are basically word docs.
    Any idea how to implement this.
    I saw a post related to this in which someone suggested to use symlinks in Apache.Not sure how to do that.
    Thanks
    Anna

    Hi Kiran,
    host('winword.exe <pass ur resume path>');
    hope this could work out....just try...good luck
    Regards
    Thobula Rakesh

  • How to open a  Word document in forms

    Hi all ,
    I need to open a document( MS Word) while clicking a button from forms.Will u please help me to do that ?
    Regards,
    Nycy

    CLIENT_HOST will only help you if the file is accessible from the client's filesystem. If you put the documents on the server there are three options:
    1. Transfer the file to the client everytime if should be opened using WEBUTIL_FILE.AS_TO_CLIENT lets say to c:\temp, then open it using CLIENT_HOST as provided by Francois.
    2. Share the directory on the application server to that it can be accessed via UNC-path like \\server\document.doc and use CLIENT_HOST directly on the network dirve
    3. Create a virtual directory in the application server and map it to the physical directory where the doc's are located, then you can access the documents via URL and can use WEB.SHOW_DOCUMENT instaed of CLIENT_HOST.
    hope this helps.

Maybe you are looking for