How to open a PDF file using forms 9i

Hi guys!!! Could you please help me with this?
Using the webutil library, i've found the function FILE_OPEN_DIALOG which yes, it is like windows' dialog box, but it doesn't open the specific file. If i have the PDF software, and a pdf file, and i use the webutil code to open the file from forms, why doesn't it open de file?
Code used:
:block.item := WEBUTIL_FILE.FILE_OPEN_DIALOG('c:\',
'pdf|*.pdf',
'Select a file: ') ;
I have also used:
:block.item := webutil_file.file_selection_dialog(directory_name => 'c:\',
file_name => null,
file_filter => 'pdf|*.pdf',
title => 'Select a file',
dialog_type => open_file, --save_file
select_file => TRUE);
thnx!!

The dialog just gives you the name of the file to open. You then have to write code to open the file. web.show_document should work.
I have deleted your last entry. Whatever you think about the situation, a civilized language (which I know Spanish to be) would be appreciated.

Similar Messages

  • How to open a pdf file using OPEN DATASET

    Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
    How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
    What i've tried is....
    DATA: f_name type string value 'C:\rep_output_pdf.pdf',
          x1 type xstring,
          LT_DATA TYPE STANDARD TABLE OF X255.
    OPEN DATASET f_name FOR input IN BINARY MODE.
    READ DATASET f_name INTO x1.
    CLOSE DATASET f_name.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = x1
        TABLES
          BINARY_TAB = LT_DATA.
    Im getting a short dump .
    Short text: The file is not open.
    Plz help me out.

    Hello Rajesh,
    You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
    You have to have the file in the app server to use OPEN DATASET.
    BR,
    Suhas

  • How to open the pdf file using LabVIEW program

    I want to open the pdf file using the system exe, but it is not happening . Can you help me?
    Solved!
    Go to Solution.

    In simpler version
    Mark the satisfied answer as accepted solution for your question,you mistakenly marked youself 
    Message Edited by Baji on 04-07-2009 05:03 PM
    Balaji PK (CLA)
    Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    open pdf.JPG ‏25 KB

  • How to open a PDF file using NWDS or VC

    Hi Frndz...
    As per my requirment i need to open a PDF file on browser which PDFs are reside on R/3 and in my case EP server is on UNIX usinig either NWDS or VC ....
    Thanks in Advance
    Regards
    Rajesh
    09903726944

    hi,
    can you put your question much more clearly? I couldnt get you properly.
    Check out the following links, they may be useful
    [How to Create a pdf form Using Web Dynpro - Java;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/805709cb-ec97-2910-04b8-f3d6303d8d3b]
    [Diff - PDF view inside NWDS livecycle designer and when App. is run;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9]
    Regards,
    Murthy.

  • How to open a pdf file using Acrobat reader in Java?

    Or if you can just tell me where in the tutorial is the section that discuss running other application from Java, I'd appreciate it. My assignment(at work, not school) is to make a class that receive a pdf file, which is passed by RMI, and display it in a child window or in a JDesktopPane. Thank you.
    kindo

    Hi Kindoo,
    try using Runtime.exe(fileName)
    Nagaraj

  • How to open a pdf file only in one computer

    I would like to sell pdf publications by allowing  the user to open them only in one computer. I learnt that this has been done  the past when I bought  some publications but I don't know the way to do it. Could you help me?
    thank you
    Marco

    thank you for your support
    Best Regards
    Marco
    Da:     Mylenium <[email protected]>
    Per:    MARCO1 <[email protected]>,
    Data:   09/10/2013 11:09
    Oggetto:        How to open a pdf
    file only in one computer
    Re: How to open a pdf file only in one computer
    created by Mylenium in Downloading, Installing, Setting Up - View the full
    discussion
    You will havwe to sign up for some service that supports rights
    management, use protected PDFs via LiveCyle/ Acrobat Connect or learn how
    to create your own ePub stuff using Digital Publishing Suite. In any case,
    it will probably cost you money upfront before you make any revenue.
    Mylenium
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in
    the forum to embed the image at
    http://forums.adobe.com/message/5746873#5746873
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/5746873#5746873]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/5746873#5746873]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up at Adobe
    Community
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.
    Il messaggio trasmesso può contenere informazioni di carattere
    confidenziale rivolte esclusivamente al destinatario. Ne è vietato l'uso,
    la diffusione, la distribuzione o la riproduzione da parte di altre
    persone e/o entità diverse da quelle specificate. Nel caso aveste ricevuto
    questo messaggio per errore, siete pregati di segnalarlo immediatamente al
    mittente e cancellare quanto ricevuto.
    This electronic mail transmission may contain confidential information
    addressed only to the person(s) named. Any use, distribution, copying or
    disclosure by any other person and/or entities other than the intended
    recipient is prohibited. If you received this transmission in error,
    please inform the sender immediately and delete the material

  • How to open a pdf file in JFrame

    hi to all,
    i need to know how to open a pdf file in JFrame. Help is needed with this would grateful, and i used the code state below..
    InputStream in=this.getClass().getResourceAsStream("/images/help1.pdf");
    Process p = Runtime.getRuntime().exec(in);Thanks in Advance...

    this is the error which i'm getting while executing the code
    init:
    deps-jar:
    Compiling 1 source file to /home/VEL AREA/SampleApplication/build/classes
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:3: package com.sun.pdfview does not exist
    import com.sun.pdfview.PDFFile;
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:4: package com.sun.pdfview does not exist
    import com.sun.pdfview.PDFPage;
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:5: package com.sun.pdfview does not exist
    import com.sun.pdfview.PagePanel;
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:25: cannot find symbol
    symbol : class PagePanel
    location: class sampleapplication.Main
    PagePanel panel = new PagePanel();
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:25: cannot find symbol
    symbol : class PagePanel
    location: class sampleapplication.Main
    PagePanel panel = new PagePanel();
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:36: cannot find symbol
    symbol : class PDFFile
    location: class sampleapplication.Main
    PDFFile pdffile = new PDFFile(buf);
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:36: cannot find symbol
    symbol : class PDFFile
    location: class sampleapplication.Main
    PDFFile pdffile = new PDFFile(buf);
    /home/VEL AREA/SampleApplication/src/sampleapplication/Main.java:39: cannot find symbol
    symbol : class PDFPage
    location: class sampleapplication.Main
    PDFPage page = pdffile.getPage(0);
    8 errors
    BUILD FAILED (total time: 2 seconds)
    for the reply #4..

  • How to open a pdf file and then attach it with images

    I am new to Indesign Server.
    I'm currently working on a pdf.
    I have a white blank pdf template.
    that I want to attach/glue it with images.
    How to open a pdf file and then attach it with images.
    Please, help me.
    Thanks.

    First step would be to make yourself familiar with InDesign desktop version.
    Whatever you intend to achieve, do it there manually. (see regular app docs or forums)
    Then try to automate your steps with scripting (see scripting docs or forum)
    If you can do it with a script in the desktop version, that script will likely also run in ID Server. (see server forum).
    If you can specify missing features not achievable thru scripting or manual use, reconsider to write a plugin (this forum).
    A seasoned C++ programmer will need a few months to learn the basics, wade thru tons of documentation etc. Alternatively consider to hire a consultant to do the development work for you.
    Dirk

  • I have a user on Adobe Reader X.  whenever they open a .pdf file, the form fields do not auto-fill u

    I have a user on Adobe Reader X.  whenever they open a .pdf file, the form fields do not auto-fill until you click in the box.  Is there a setting that can be changed to make the form open properly?

    Sounds like the form fields were filled in on a Mac using Mac Preview. This cannot be fixed in Reader only Acrobat. Ask the person who filled in the form to redo their work in Adobe Reader.

  • How do I download PDF files using Safari.  All I get is a black screen.

    How do I download PDF files using Safari.  All I get is a black screen.

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Does anyone know how i can view PDF files using Galaxy Note 2?

    Does anyone know how i can view PDF files using Galaxy Note 2?
    This is what i have been doing;
    I click on the file i wish to view (via a portal)
    this file goes to notification widget (i drag down screen)
    notification/message says download complete
    i click on notification/message
    nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
    I have installed Adobe Reader.

    Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?

  • How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?

    How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?

    Used to be able. Considered a security bug. Fixed.

  • How to open a pdf file in Adobe Reader using URL scheme on iOS devices

    To open a pdf files in Adobe Reader on iOS devices,
    I created url links as follows:
    com.adobe.Adobe-Reader://mysite.com/myfile.pdf
    com.adobe.reader.request://mysite.com/myfile.pdf
    But none of these does work.
    Adobe Reader starts up but never opens pdf files.
    Does anyone know how to write URL scheme?
    Thanks in advance.

    Sorry. Wrong category.

  • How To Open a PDF File in a Oracle Forms

    hi
    all
    I have a Open a PDF file in a PDF viewer when i Press a Button and Check if File is Exit in given Location then open Or Message .
    How This is Possible.
    Help

    this code runs on the webutil configred machines
    PROCEDURE Open_Doc
    IS
    -- Open a stored document --
    LC$Cmd Varchar2(128) ;
    LC$Nom Varchar2(100) ;
    LC$Fic Varchar2(128);
    LC$Path Varchar2(128);
    LC$Sep Varchar2(1) ;
    LN$But Pls_Integer ;
    LB$Ok Boolean ;
    -- Current Process ID --
    ret WEBUTIL_HOST.PROCESS_ID ;
    Begin
         -- Local temporary file name --
         LC$Sep := WEBUTIL_FILE.Get_File_Separator ; -- 10g
         LC$Nom := Substr( :FILE_NAME, instr( :FILE_NAME, LC$Sep, -1 ) + 1, 100 ) ;
         LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
         LC$Fic := LC$Path || LC$Sep || LC$Nom ;
         -- File extraction --
         If Not Webutil_File_Transfer.DB_To_Client
    LC$Fic,
    'CLM_CASE_ATTACHMENTS', ---------table name
    'DOCUMENT_PIC', ----------field name of the picture(blob)
    'CASE_ATTACHMENT_ID = ' || To_Char( :CASE_ATTACHMENT_ID )-------where claues
    ) Then
    Raise Form_trigger_Failure ;
    End if ;
         -- Open the local temporary file --
         LC$Cmd := 'cmd /c start "" /WAIT "' || LC$Fic || '"' ;
         Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
         LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
         If LN$But <> 0 Then
         LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
    Raise Form_Trigger_Failure ;
         End if ;
    end;

  • Opening a pdf file through form 10g

    Dear all,
    I have requirement to open a pdf file through my form application.
    Ho will i do this?
    What is the procedure to do this??
    Please help me.
    Regards

    Can you tell me where the pdf can be found. Through a webserver or inside the database or is the pdf somewhere else?
    If the pdf is available through an url you could use web.show_document which can open the url/pdf document in a new browser window.
    If the pdf is inside the database you could download the pdf to the client using webutil and then open the pdf document using a host command.
    If the pdf is inside the database or by a url you can also use a forms bean. I've used forms bean bean to unload a pdf from the database and show it inside the forms application. Most important when using a forms bean is that the bean component can show all the fonts which are used inside the pdf. There are some free solutions which can not show i.e. bar codes. The are also some paid components which will do the trick.
    Regards,
    Mark

Maybe you are looking for