WEB.SHOW_DOCUMENT opens additiional IE browser.

Hi All,
I am using web.show_document (web.show_document('file:///file_name','_blank') ) to open pdf and msg files stored at a location. For PDF files, web.show_document works fine and pdf file gets open. However for msg (email) files, a new browser gets open along with msg file. User need to close this additional browser.
Also the word files opens in IE browser. We need not to open MS office files in IE browser.
Any suggestions to overcome this issue.
Regards,
Vinit
Edited by: Vinit on Feb 21, 2011 2:37 AM

Vinit,
Your code explicetly opens a new "Blank" browser window. The reason the new browser window goes away with the .pdf files is because you have an OS MIME association for .pdf's which controls how the file is opened on the OS. Clearly, there is no MIME association for the other file types.
web.show_document (web.show_document('file:///file_name','_blank') )Try '_self' or '_parent' in place of '_blank'. For more information on the Web.Show_Document built-in please check the Forms Help system.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Edited by: CraigB on Feb 22, 2011 1:11 PM

Similar Messages

  • Web.show_document opening in the same window urgent

    Hi,
    I am using web.show_document to run all my reports from webforms 10g Release 2, it is working fine, and we have used a DLL to avoid the extra explorer window while opening the webforms it basically hide the extra window at client side, this is also working fine, now when the user opens multiple sessions and then he try to run a report the report output is coming and replacing all the other webforms opened (this is happening if i have multiple session opened) if there is only one session then everything is fine.
    In my formsweb.cfg "separate frame=true" and then at the client side i am hiding the extra explorer window using webutil & window handle, am calling my report using web.show_document with target= "_blank" now if i open two session at client side i will have only two application window the extra explorer windows will be hidden, in this case if i try to fire a report the report works fine but it replacing the 2nd application window.
    Hope i had explained the scenario. Could anyone help me out to solve this problem?
    Thanks & Regards
    Najeeb

    Hii,
    Try This
    go to internet browser. under tools menu select internet options then in that go to "advanced" tab
    in ADVANCED tab under browsing there is property called reuse window for launching shortcuts unselect it.
    and save changes.
    Sachin

  • How to show PDF with web.show_document in a separate browser frame (forms10g)?

    I'd like to show PDF in a separate browser frame or in the same window, but at the same time with form screen. So, I'd like to have form in the left and showing pdf in the right. PDF is runing on web.show_document. I understand that this is imposible (btw: does anyone know when it's going to be posible?), but I'd like to figure out if someone have already made some kind of solution?
    Thanks.

    I'd like to show PDF in a separate browser frame or in the same window, but at the same time with form screen. So, I'd like to have form in the left and showing pdf in the right. PDF is runing on web.show_document. I understand that this is imposible (btw: does anyone know when it's going to be posible?), but I'd like to figure out if someone have already made some kind of solution?
    Thanks.

  • How to have web page open in same browser window after redirect in Flash video placed in Dreamweaver?

    Hello,
    Would be grateful if anyone can help me.
    website: www.Paris-Pet.com
    Currently, a flash video plays on the index page. The following action is placed in the last frame of the video in Flash:
    navigateToURL(new URLRequest("http://www.paris-pet.com/home.html"));
    This is working as intended with one exception: Instead of directing to the home page from the index page when the video is completed, it opens up the home page in a second browser window, leaving the empty browser window of the flash movie. This is not the seamless design I was hoping for, and I've also been told on some computers, blocking pop up windows is preventing them from smoothly transitioning to the rest of the web site.
    I would like the redirect to open the home page in the same browser window as the movie in the index page played.
    Please help. Print designer in over her head.
    JM

    Brilliant, Jon. Thank you so much. For those of you who stumble on this, I did have a tiny bit of trouble when I edited the actionscript; the video didn't play as expected. After trial and error, this is the code that worked both in playing the video and opening up in the same browser window:
    navigateToURL(new URLRequest("http://www.paris-pet.com/home.html"),"_self");
    The difference seems to be this:  ")     before the comma prior to "_self");
    Again, Jon -- thanks!
    Jack

  • Web.Show_document and oracle session

    Hi,
    I am uploading a file on to Oracle Portal through web util. After this, I am calling the web.showdocument to view the uploaded file. But I am seeing only a blank page. This is the sequence flow.
    1. Forms call a procedure which will create a dummy record of the document to be uploaded. This insert is happening as an autonomous transaction.
    2. The Forms call webutil and uploads the document
    3. Then I am calling web.show_document to view the document. The browser is opening an empty page. But once I did an explicit commit, I can open and view the document successfully in the same way.
    I am using '_blank' option.
    So, what I infer from this is that web.show_document opens the browser with a new oracle session by passing authentication details internally. Is there any way view the document without doing an explicit commit?
    Thank you.
    Warm Regards,
    Raja.
    Message was edited by:
    Raja M

    Check
    [b]Mozilla Firefox Options
    File Types
    The Download Actions dialog, which can be opened by clicking the
    Manage... button, contains file types that you have downloaded.
    You can choose what Firefox should do when clicking on a specific
    file type by selecting the file type you want to modify and clicking the
    Change Action... button.

  • Web.show_document cannot display file with Chinese char in IIS 6

    Dear all,
    There is a problem that web.show_document cannot display file with Chinese char in IIS 6, but works fine in IIS 5.
    Is it a server problem or is there any setting in server? Do you know how to solve it?
    Big Thanks
    JY

    Hi,
    As Francois mentioned, this issue has nothing to do with forms / web.show_document. web.show_document, just opens the URL specified as parameter. So, if you run the URL (that you've passed as argument for web.show_document), directly in the browser, you would be getting the same issue.
    So, as you said, if it works fine in IIS 5 and does not in IIS 6, it would be an issue with the IIS and not forms. You might want to check out the IIS 6 release notes / documentation for any known issues / raise an issue in that.
    -Arun

  • Web.show_document-i dont want to open report in browser just save in folder

    Hi all,
    I m using the following code for pdf file generation using a loop. The problem is every report is open in browser and then save a pdf file in a specific folder. I want that report is not open into browser just save pdf files in a specific folder. Any body knows how i do this. I am using 10g developer 9.0.4.
    DECLARE
         v_SAM_CUST_ID     NUMBER(22);
         CURSOR C1 IS  SELECT
         SAM_CUST_ID
         FROM SAM ,DE_ADDR
         WHERE SAM.SAM_CUST_ID=DE_ADDR.DE_CUST_ID
         AND SAM.SAM_FREQUENCY IN ('DAILY','MONTHLY','Quarterly','Half yearly','Yearly');
    BEGIN
           if :TEXT_BOX1='S' then
           OPEN C1;
           LOOP
           FETCH C1 INTO v_SAM_CUST_ID;
           EXIT WHEN C1%NOTFOUND;
           --message('You have enter S'||v_SAM_CUST_ID);
           WEB.SHOW_DOCUMENT('http://plato:8889/reports/rwservlet?report=C:\CUST_PRINT1.rdf&P_1='||v_SAM_CUST_ID||'&cust_id&desformat=pdf&destype=cache&userid=wh1/wh1@dwh');
           END LOOP;
           CLOSE C1;
       END IF;
    END;
         

    This configuration file is present in the /reports/conf/ directory.
    It contains a few examples, very usefull if you want to hide some informaztion, like the connection string for instance.
    you can call it by setting the entry name in the url:
    http://machine.fr:7778/reports/rwservlet?my_entry&report=report.rdf&destype=...
    Francois

  • Web.show_document does not open browser anymore

    We upgraded our production database over the weekend from 10g to 11g. When it was still 10g, our Forms application used to open a PDF embedded in IE. After moving to 11g, it does not open IE anymore and shows no error messages. Clicking the button with the web.show_document command does nothing. Our test database is also 11g but does not have this problem. What could have gotten wrong?

    I can't explain why it seems to started failing all of a sudden. We often hear comments like this only to later discover that either someone else made changes of which you are unaware or possbily a software update occurred automatically. For example, the JRE version may have been auto-updated.
    As for recoding in an alternative fashion, it will be difficult for me to say specifically because I don't know the app nor do I know your needs. The biggest, and it isn't all that big, deal will be to identify from where the pdf being opened comes from. In other words, does it already exist on the client machine or is it downloaded to the client from the/a server? Also important to know is whether or not the file name is known or not.
    So, if you want to change the code, first figure out how you want the application to complete the task. Here are my suggestions:
    Suggestion 1.
    <blockquote>If the file (pdf in your case) originally resides on a remote server, then leave it there. The document can be opened using a direct url to the file on the remote server. For example:
    WEB.SHOW_DOCUMENT ('http://server/somepath/my.pdf','_blank');If the file lives within the Forms directories, you can even use a relative path rather than the fully qualified one above. For example, if the files live in \forms\java\foo then you can do this:
    -- The exact entry may differ slightly depending on which
    -- Forms version you are using and where you locate the files
    WEB.SHOW_DOCUMENT ('/forms/java/foo/my.pdf','_blank');This makes the application a little more flexable given that you would not need to change the app code if the server name changed. Once the file has been opened on the client side, whatever pdf reader the end-user is using will offer a "Save" option. So if they choose to save the file locally, they can do so as they desire.</blockquote>
    Suggestion 2.
    <blockquote>If, for whatever reason, the file is downloaded to the client or just happens to already exist on the client, you can use WebUtil's CLIENT_HOST (or WEBUTIL_HOST.HOST) command to open the file locally. There are several ways to do this and which method you choose will depend on a few factors. For example, are all the client machines Windows based? I will assume, for this example that the client machines are Windows based. And, because I like to write code as generically as possible, here is a way to open documents on Windows without the need to know which application normally handles it. In other words, you don't need to know that it will be Adobe Acrobat that opens pdf files or that MS Word will open doc files.
    -- In this example, the value of myPathAndFile is the path and filename.
    -- For example, myPathAndFile := 'C:\Users\<USER_NAME>\Documents\foo.pdf';
    CLIENT_HOST('rundll32 shell32,ShellExec_RunDLL '|| myPathAndFile);This is a bit of an old school way of accomplishing the task, but it is very effective and flexiable. Alternatively, you could use CLIENT_HOST to directly call the file, but this may not always work. For example:
    CLIENT_HOST('C:\Users\<USER_NAME>\Documents\foo.pdf');</blockquote>

  • Closing the browser windows created by web.show_document and javascript

    From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current forms browser window remains as is.
    The logic is as follows
    l_rpcURL := 'http://....just a standard URL.....'; -- edited for this thread
    l_jsURL := 'javascript:window.open("' || l_rpcURL || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=no");self.close();';
    WEB.SHOW_DOCUMENT (l_jsURL,'_blank');
    The http request works fine but leaves a browser window behind. It's the one created by the javascript.window.open(). If I remove the self.close() from the javascript then I have two browser windows open, one from web.show_document and the other, as described previously, from the window.open().
    Any idea how I can force closure of the window opened by the window.open() ?
    Thanks

    Hi,
    did this occured afer installing service pack 2?
    A work around is The only solution that is to create a close.html file and calling this file in the code: Web.show_document('http://server:port/close.html','_self');
    <html>
    <body onload="closeit()">
    <script>
    window.close();
    </script>
    </body>
    </html>
    Monica

  • WEB.SHOW_DOCUMENT . Publish reports character mode directly within browser!

    hello!
    I'm having the problem.
    When I want to publish reports character mode directly within browser!
    The code is as follows!
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE,  FILE);
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, '');
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, server );
      v_rep := RUN_REPORT_OBJECT(reportFile,mparamlist_id);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
            vjob_id :=substr(v_rep,length(server)+2,length(v_rep));
      WEB.SHOW_DOCUMENT('../reports/rwservlet/getjobid'||vjob_id||'?server='||server,'_blank');
         else
      message('Fail to create Report!');
         end if;
    The report is generated,
    But it does not open directly in browser!
    The browser will download a file without extension / format, with the name 'getjobid38'!
    When I change the code to 'TXT'
    WEB.SHOW_DOCUMENT('../reports/rwservlet/getjobid'||vjob_id||'.txt?server='||servidor,'_blank');
    The following error is returned:
    rep-50003 the command line is invalid: getjobid38.txt
    Already grateful!

    working with forms 11gR2 (11.1.2.1)

  • Browser Time out in Reports (using WEB.SHOW_DOCUMENT to call reports)

    When running a big report which takes a long time to run, it finishes on the report server but in the browser the screen is stuck at the parameter form, you don't see the report output. It's as if the browser has timedout. Is there a solution to this?
    I am running reports using WEB.SHOW_DOCUMENT only - through a URL. This seems to be a huge drawback of using this method.

    Is the browser launching?
    If it is have you tried a show source on the browser window?
    Sometimes if you open an XML file in a browser you get a blank page but the XML is there. Something to do with the XML format I think. I'm no expert on XML just a behaviour I have observed.

  • Title of the browser displaying a report output through web.show_document

    Hiya
    We are using Oracle Forms 10g 10.1.2.0.2
    All our Forms and Reports are working well.
    We are using Java Script in Web.Show_Document so that when the report is displayed on the screen in the browser, the browser's toolbar and menubar should not be visible.
    The code looks like this:
    v_url_in := 'reports/rwservlet' || '/getjobid' || v_job_id || '?server='|| 'my_rep_server';
    v_url_out := 'javascript:window.open("'||v_url_in||'", " ", "toolbar=no,menubar=no");self.close();';
    Web.Show_Document (v_url_out, '_blank');
    The above code is working absolutely fine. No issues about this.
    Now when the report opens in a new browser window,the title of the browser window reads as follows:
    http://<hostname>:8889/reports/rwservlet/getjobid1234?server=my_rep_server - Microsoft Internet Explorer
    So rather than displaying the title of the browser window as the URL of our Application Server, we want to show the title to Reports name so that it
    reads as
    'Customer Sales Summary Report - Microsoft Internet Explorer'.
    Does anyone has any idea if it is possible to change the title of the browser window, if so, how ?
    Cheers
    Mayur

    Mayur,
    I'm not a web developer either, however, I've done this kind of thing using the HTP database package - as I mentioned. What you could do is write a database procedure that accepts the URL and the Title as parameters and let the procedure open the URL for you. For example:
    CREATE OR REPLACE PROCEDURE show_url(p_url VARCHAR2, p_title varchar2) AS
    BEGIN
       htp.htmlOpen;
       htp.headOpen;
       htp.htitle(p_title);
       htp.headClose;
       htp.bodyOpen( cattributes => 'onLoad="WinOpen()"');
       htp.bodyOpen;
       htp.script(clanguage => 'javascript',
                    cscript => '<!--
                                function WinOpen() { open("'||p_url||'","_self");
                                //-->'
       htp.bodyClose;
       htp.htmlClose;
    END;I was unable to test this procedure on my Oracle XE install, but it should work on a non-XE database.
    Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question, please mark the response accordingly. Thanks!

  • Web.show_document on XP SP2 does not open a .csv file

    XP SP2
    XE db
    Forms 10g (9.0.4)
    form90.conf:
    AliasMatch /query_exports/(..*) "C:/mydir/query_exports/$1"
    .csv file creation statement:
    lv_ext_dir := 'query_export/';
    lv_file_id := text_io.fopen(lv_ext_dir||lv_file_name,''w');
    so far so good. the file is created and written to.
    text_io.fclose(lv_file_id);
    now, the open of the file created:
    lv_temp_dir := 'query_exports/' -- note same value as above
    web.show_documents(lv_temp_dir||lv_file_name);
    at this point a new browser window is opened with HTTP 404 Not Found error. The URL is:
    http:/local_machine:8888/forms90/query_exports/"lv_file_name"
    if I go the following:
    lv_temp_dir := 'file:///c:/mydir/query_exports/'
    web.show_documents(lv_temp_dir||lv_file_name);
    The new browser does not open and I do not get an error. The file is still written to.
    If i use:
    lv_temp_dir := 'query_exports/' -- note same value as above
    web.show_documents(lv_temp_dir||lv_file_name);
    and the new browser open with the HTTP 404 Not found message and I manually type in:
    file:///c:/mydir/query_exports/"lv_file_name",
    The .csv file opens correctly.
    Why is this behavior happening?
    TIA for any help you can provide,
    Ed.

    Whats the machine name ?
    Add the machine name/networkdomain name as a trusted site under
    Internet Explorer ->Securitysettings
    Rajesh ALex

  • Using web.show_document to open xml file

    I have successfully created an xml file and saved it to a directory on my hard drive. I was tyring to find answers to Client_OLE2 and stumbled upon Web.Show_Document to open this file. Essentially the file is in a spreadsheet format so when I manually open using IE then Excel is launched. Anyway, currently I am running forms locally and have set a virtual-directory virtual-path in my orion-web.xml file. My virtual path is /report_tmp/. So in my form I have issued the following call to launch a browser and display the file:
    Web.Show_Document('/report_tmp/'||v_filename, '_BLANK');
    This call does not produce any errors nor does it display the file. What am I doing wrong?
    Thanks,
    c

    Is the browser launching?
    If it is have you tried a show source on the browser window?
    Sometimes if you open an XML file in a browser you get a blank page but the XML is there. Something to do with the XML format I think. I'm no expert on XML just a behaviour I have observed.

  • How can I maximize the window which opened using web.show_document() ?

    My user complain, everytime they want to print the report it didn't
    show maximize screen,
    How can I maximize the browser or window which opened using web.show_document() ?
    Thank you

    Thank you for replaying,
    I did search in forum, but I only go one about maximize window when calling
    a report (web.show_document). the link :
    Maximize the new opened window
    Frank said to use "Javascript to the Forms", but no futher explanation whow
    to do it ?
    please help, I don;t know javascript.
    Cabe,

Maybe you are looking for

  • Pricing of material based on batch

    hello gurus, i have a question,here i have scenario in which i want to differentiate the price of the material based on batches. pls correct me if i have made some wrong, now v/05 i have created a table in which i have taken batch and material as my

  • Photoshop CS2 Upgrade to CS4 Upgrade with CS4 trial version

    Hello, today I bought the PS CS4 Upgrade (Win). The shipping will take 7 days so I asked myself if it is possible to upgrade my "CS2 Upgrade version" (from PS 6 full version) to CS4 by using the trail version. Dear Forum, do you have a step by step g

  • Sort by name separates upper/lower case

    Since upgrading from Mountain Lion to Mavericks (10.9.4), I've noticed that I am no longer able to sort files by name and get one list in alphabetical order. I now get two, as Mavericks seems to be sorting out files beginning first with uppercase let

  • OM unit's creations

    Dear Team, One of my clients has the following requirement in OM unit's creations:- Description                         number range Organization unit - 100000000-20000000 Position unit -    200000001-300000000 Jobs-     30000001-40000000 Please sugg

  • How to remove what's hot in wiki

    I want to remove, what's Hot" in the side bar on a wiki. Can it be removed from open source?