Open pdf document from local disk on button trigger from Oracle form in 6i

hi all.
i have an application in oracle forms 6i. The system from where forms are run...has a local folder with pdf documents. the requirement is that when user click on a button in oracle form...the respective pdf from the local folder should open (in browser or in adobe pdf or in any other way).
I really desperately need this help. had googled. did use the host and client_host commands in the button trigger but am presented with error "host, client_host" not declared.
bundles of thanks in advance for getting me out of this.

Hi
     DECLARE
     pl_dept paramlist;
     com_code varchar2(1);
     BEGIN
     pl_dept := Get_Parameter_List('tmpdata');
     IF NOT Id_Null(pl_dept) THEN
          Destroy_Parameter_List( pl_dept );
     END IF;
     pl_dept := Create_Parameter_List('tmpdata');
        ADD_PARAMETER(pl_dept,'p_date_from',TEXT_PARAMETER,:date_from);
        ADD_PARAMETER(pl_dept,'p_date_to',TEXT_PARAMETER,:date_to);
        ADD_PARAMETER(pl_dept,'destype',text_parameter,'file');
        ADD_PARAMETER(pl_dept,'DESFORMAT',TEXT_PARAMETER,'pdf');
     Add_Parameter(pl_dept,'paramform',TEXT_PARAMETER,'NO');
     Run_Product(REPORTS, 'EMP_STATISTIC_REP.rep', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_dept,NULL);
End;      Not tested hope it works...
Regards,
Amatu Allah

Similar Messages

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

  • Generate PDF documents from Oracle PL/SQL

    Hi All,
    we are working on a PL/SQL project, named PL/PDF, for generate PDF documents from Oracle PL/SQL language. We are looking for PL/SQL programmers for beta testing. If you are an enquirer in this topic, please send an email to [email protected]
    Thanks,
    LL

    You will need to use form fields. You may be able to use adjustible size form fields in Designer. You might try to ask in the Designer forum for help.

  • Error when opening pdf document from a website.

    Hi,
    I have adobe reader 9 and recently when I try to open a PDF document from a website it keeps giving me this message saying adobe PDF broker process for internet explorer has stopped working. Can someone plz tell me how to fix it? Thanks a lot.

    Hi,
    I got it fixed now. I Just uninstalled it and installed it again. It works ok now.

  • How to open .cmdrw file from Oracle Forms 10g

    Hi,
    We need to call *.cmdrw* file from Oracle forms 10g. Is there any way to call *.cmdrw* file from Oracle forms 10g?
    Thanks for the help.
    Viishnu Nekkanti

    In case you want to open a .cmdrw with its associated application you can use the following procedure:
    webutil_host.NonBlocking( 'rundll32 url.dll,FileProtocolHandler ' || client_filename );This works for every file where a program has been associated to its file extension. (Adobe Reader for *.pdf, Microsoft Word for *.doc, Microsoft Excel for *.xls and so on)
    Regards
    Markus

  • 1014:1014: error I keep getting when trying to open PDF document from online source.

    need help trying to resolve 1014:1014 error when I open online PDF documents

    Hi Christoph,
    The problem is elsewhere, I asked the user to log in at a different workstation and she is able to display documents from SAP at another PC. So the problem is not in SAP but either with the SAPGUI or in Windows...
    I requested a SAPGUI reinstall, we'll see whether that solves the problem.
    But it is certainly not related to DMS.
    Thanks,
    Krisz

  • Can't open pdf documents from mail attachments

    Have Adobe Reader free version installed. IPAD2 using latest IOS 7
    When trying to open a pdf attachment from mail attachments, there is a quick flash screen that displays and the attachment doesn't open.
    Is there a fix for this?

    Will it open other PDF attachments?  Perhaps that particular attachment is corrupt?
    A few things to try...
    1. Remove apps from the Recently Used (multi-tasking) list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Swipe up on the app preview card to remove it from the list
    - Press the home button when done.
    2. Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    3. Reset by pressing the home and sleep buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • Generate .PDF file from Oracle Form and print .pdf

    Hello, I am new to oracle form. I need direction on how to create .pdf file on a button click.
    The requirement is when user click a button on a form, I need to write some data to the pdf file and open the .pdf file for print.
    I am using Oracle Form builder 10.1.2.0.2
    Thanks a lot! Please help!

    Dear all,am new to oracle report and oracle forms and i know the
    basics how to generate the report and to create the form, Now my doubt is, like generating report
    from oracle report how to generate the report from oracle from,should i add any command button? and where
    to add the coding and what coding ? when i click that command button the report should be generated like oracle
    report,what should i do?Please help me to learn.
    my table name is 'student' and it has the following columns,
    sid,sname,grade,result.
    Am using oracle from 10.1.2.0.2 version and
    oracle report version is 10.1.2.0.2.
    Please give step by step procss.
    Thank you.

  • How to call pdf files from oracle forms

    I have a pdf file in the server , I need to call this and open when a button is pressed in the oracle forms.
    Please let me know how to do this.
    Thanks,
    Previn

    Frank,
    I have oracle applications and I want to open a pdf file located in the server from a button in oracle applications.
    Previn,
    you don't mention the Forms release you are running.
    If you are running Forms on the web, you can use
    web.show_document() to load files from the Web if
    they are accessible via HTTP.
    Frank

  • Calling Word document from Oracle Forms 10g

    Hi all,
    I would like to call a Microsoft Word document from my Oracle Forms 10g.
    What would be the best way to do this?
    Thank you in advance.

    Have you tried something like
    WEB.SHOW_DOCUMENT('file:///<documentpath>','_blank');

  • Opening a file from Oracle Forms

    How do I open a file directly, that's located on my desktop or the server from Oracle 10g Forms 9i ?

    The webutil package has a open_file command for files on the client. The text_io package has a similar command for the server machine.

  • Can I set up safari to automatically open PDF documents in the pages app?

    Can I set up safari to automatically open PDF documents from the internet into the pages app?

    No - and you can't open pdf files in the Pages app on the iPad anyway as far as I know. You can export a Pages file as a pdf but you can't open them in Pages.

  • Open PDF document with a click of a button

    Hello All,
    I am trying to open a pdf document which is located on the Unix server when a button is clicked. The Button is of Item Style 'Button', the file is at a location for example /tmp/user/.
    Can anyone please suggest with some already existing examples. I looked for a few in the OTN forums but everything was pointing to involving BI Publisher. But my requirement is to open an already existing document with a click of a button.
    Please suggest.
    Thanks
    Kris

    Wahid,
    Thanks, the button is not only opening the document but before that the button click should merge the Pdf documents into one. The PDF merge is happening, but when I have a URL in the button its killing the merge functionality.
    I used the HttpServletResponse and servletoutput stream to open the merged PDF document. Its working on my local machine, I need to try it on the server.
    I was trying to use the XMLIMporter command to upload the OAF oage which already exists in the server. But this did not work for me. Since I am new to OAF may be Im missing something. Below is the XMLIMporter command.
    java oracle.jrad.tools.xml.importer.XMLImporter SearchPG.xml -username apps -password pwd -dbconnection " (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname.com)(PORT=1111))(CONNECT_DATA=(SID=ora_sid)))" -rootdir $JAVA_TOP -rootPackage /Server/apps/comn/java/classes/customDir/module/page/webui/
    The Search Page is in /customDir/module/page/webui/ this folder. Is Framework bounce needed in this case.
    Thanks again.
    Kris

  • When I open a pdf document from my dropbox to view it, the document shows up blank, even though it is filled out. This also happened with pdf documents that have been e-mailed to me.

    When I open a pdf document from my dropbox to view it, the document appears blank, even though I know the information is actually there. This also has happened with pdf documents that have been e-mailed to me, then opened to view and they are blank?? Why are they showing up blank?

    When I open emails with PDFs I click on the attachment (doing this all on my iPad) it gives me the option to "open in iBooks", I accept then after that the document is sucked into my iPad but I can't do anything with the PDF after that.  Where is the actual file on my iPad? Why can't I email or send these PDFs to my cloud (Dropbox)?
    It's like once they go into iBooks they're stuck forever.

  • Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.
    == URL of affected sites
    ==
    http://
    == Troubleshooting information
    ==
    Firefox Version
    3.6.3
    Extensions
    Name
    Version
    Enabled
    ID
    Skype extension for Firefox 2.2.0.70 false
    Java Console 6.0.01 false
    Java Console 6.0.02 true
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Office Plugin for Netscape Navigator
    *Download and Print Plug-in DLL
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *Adobe PDF Plug-In For Firefox and Netscape

    Hi.
    Does this only open on that specific site?
    In any case, you may want to:
    - instruct Firefox to handle PDF files in a specific way by going into Tools > Options > Applications and selecting the option you want for the PDF files
    - reinstall Adobe Reader and its Firefox plugin
    - install another reader instead of Adobe Reader. I recommend Foxit Reader ( http://www.foxitsoftware.com/pdf/reader/ ), since it's free, VERY light, VERY fast, safe and also has a Firefox plugin (make sure you don't have both Adobe Reader plugin and Foxit Reader plugin enabled/installed at the same time in Firefox)

Maybe you are looking for