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.

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

  • 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

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

  • When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    When I open a word document attachment in mail for IOS 7.1.1 the previous jpeg is showing on the first page. When I open the attachment from mail in mac OS X the jpeg does not appear. Can anyone help?

    gonsa47 wrote:
    When I open it in pages or word the correct company logo appears.
    Does the mail app display whatever is in the document without the ability to differentiate between hidden or non hidden images?
    The mail app will not display fillable form fields in PDF files that can be seen in real PDF apps. I say real PDF apps because the form fields in PDF apps will not appear in the iBooks app either. IMO, iBooks is not a real PDF app.
    So, I would say that the mail app cannot differentiate between hidden and non hidden items

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

  • Open & attach word document on clients machine

    I want to open & attach word document on client machine from Oracle Forms, all my trials failed.
    I am using Oracle 10G
    I want detailed steps to do so.
    Best Regards
    Message was edited by:
    user630033

    Hi,
    ... I would ask this question in the Forms-Forum instead of here ...
    Have a look at WebUtil: http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    Regards
    Rainer

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • HT202879 how can I open a Word document in Pages 09?

    How can I open a Word document using Pages 09 please? I am trying to open Word documents from a CD using both trying to open in Pages, nd dragging and dropping into the Pages icon in the dock. It tells me, every time, thast the document cannot be opened.

    What happens if you open it in TextEdit or LibreOffice [free]?
    Does it open where you got it from?
    Peter

  • Open a word document from a Java Application

    Hi,
    Can I open a word document from a java GUI apllication and point to a bokkmark automatically in the word document when opened.

    See this thread:
    http://forum.java.sun.com/thread.jspa?threadID=228332&messageID=810684

  • Open/save word document in jsp

    I can open a word document in jsp but i don't know how to save and close it to where i want again inside same jsp.
    I find a code that do thing i want to do but it was written in vb script.
    How can i convert vb code below to java / jsp?
    Dim wrdApp As Word.Application
    MyStr = Format(dtMyDate, "mmm dd, yyyy") & ".doc"
    Set wrdApp = New Word.Application 'released first resources
    With wrdApp
    .Documents.Add "normal.dot", , , True
    strPatientName = txtName.Text
    strFileName = "c:\MJCC\Lab\" & strPatientName & "_" & MyStr
    .ActiveDocument.SaveAs strFileName
    .ActiveDocument.Close
    .Quit
    End With
    Set wrdDoc =Nothing

    <%@ page contentType="application/vnd.ms-excel" language="java"%>
    <meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=iso-8859-1">
    by using this 2 codes, when i run this page, it will pop up a box for me to save the jsp file..
    i'm able to save it in xls / csv format...
    so, mayb you can try change the ms-excel to ms-word or something else..
    hope this is useful...

  • How can I open a word document in C++ with a CNiWordApplication object?

    Hello,
    For an application, i need to open a word document using VisualC++ and CNiWord classes (CNiWordApplication, CNiWordDocument...). I successed to create a new CNiWordDocument with the CNiWordApplication CreateDocument() function. But when using the OpenDocument() I have error message about violation error. Must I create another objet before calling the OpenDocument() function? Is it possible to have an example of code to open a word document?
    Thank you for your help.

    I tried the following code to open a doc file in an MFC application.
    CNiWordApplication word;
    CNiWordDocument doc = word.OpenDocument("c:\\books.doc");
    This worked fine for me. I tried this with Word 2003 and Measurement Studio 7.1
    Try running one of the shipping examples. You can find examples for this under ..\MeasurementStudio\VCNET\Examples\Office\
    Hope this helps.
    Bilal Durrani
    NI

  • Did I miss something in the fine print? I installed Lion and and come to find out, I can no longer open any Word documents or Excel spreadsheets as they are no longer supported (being PowerPC apps).  Seriously?!?!?!?!!   What are my alternatives?

    Did I miss something in the fine print? I installed Lion and and come to find out, I can no longer open any Word documents or Excel spreadsheets as they are no longer supported (apparently because they are PowerPC apps).  Seriously?!?!?!?!!   What are my alternatives?

    Hi Mary and Matthew
    You might find it helpful to "try before you buy" - there is a 30 day free trial offer for Office for Mac 2011, accessible from M's .com website.
    You may be able to use this period to open and resave your old documents in a format that enables you to switch instead to using Apple's iWorks apps moving forward.
    I initially intended to do something similar, but ended up buying Office as it provided an easier way (for me, at least) to continue working with years worth of old emails, letters, spreadsheets and other documents (from my PC days) without risking damage to their integrity, formatting, etc.

  • When I try to install abode - it will download but says i have to close firefox before it will install. also i try to open a word document from a website and it will not open - it will only download

    i install abode - it will download but not install and indicates i have to close firefox before it will download. Also, I try to open a word document from a website - it will download but not open.

    You need to close Firefox to install many plugins, including those from Adobe.
    As for the Word downloads, see the changing downloads action section of this link - https://support.mozilla.com/kb/Managing+file+types

Maybe you are looking for

  • Help using arrays in java

    HI all, I am working on a program that will print out my initials 'A' and 'T' using arrays. I am asked to initialize the first intial to '*' and the second intial to '@'. I wrote the code but the output is wrong. Can someone help me by letting me kno

  • Images not shown correctly i addon store

    I Have a questions regarding the Adobe® Exchange Producer Portal. If this is not the correct forum, please do direct me to the correct channel. Images not showing correctly on the product page in the addons store. See page https://creative.adobe.com/

  • Deserialization problem

    My web service returns a custom complex type. I want to know how I can read it in my java client. Right now, I am getting deserialization errors. Do I have to write my own Deserializer? Or can I use the SOAPMappingRegistry and use mapTypes ? My compl

  • How to see my stored passwords?

    How can I see my saved passwords for web site on Snow Leopard?

  • No Ringtone or key-clicks

    Last night my wife told me her 8G phone was lighting up when she got a call, but no ring tone (it would also vibrate).....I told her that my key clicks went silent, even though the switch is still selecting "on". Funney, she said....I wonder if your