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

Similar Messages

  • Dont want to display "Report Successfully Run" applet

    Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Document.If my report is sent to printer successfully there is no need to display browser window with the above mentioned message. Is there any solution for this???

    Code in when-button-pressed
    DECLARE
    V_Usr_Prm Varchar2 (1000);
    BEGIN
    V_Usr_Prm :=
    'FROM_REF_NO='
    || P_FRM_REF_NO
    || '+TO_REF_NO='
    || P_FRM_REF_NO
    || '+P_PRE_BY='
    || P_PRE_BYE
    || '+P_VR_TYPE='
    || P_VOR_TYP
    || '+YEAR1='
    || P_VOR_YER
    || '+MNU_IDE=0'
    || '+P_PRN_FLG=1';
    web_show_document_proc ('HTMLCSS', 'Y:\02\\02\VOR_PRN.REP', V_USR_PRM);
    END;
    Procedure Web_Show_Document_Proc is
    PROCEDURE WEB_SHOW_DOCUMENT_PROC (runformat varchar2,
    reportname varchar2,
    userparameters vARCHAR2)
    IS
    i NUMBER (10);
    v_a VARCHAR2 (10);
    v_b VARCHAR2 (10);
    vc_url VARCHAR2 (1000);
    vc_url_temp VARCHAR2 (1000);
    vc_user_name VARCHAR2 (30) := GET_APPLICATION_PROPERTY (username);
    vc_user_pw VARCHAR2 (30) := GET_APPLICATION_PROPERTY (password);
    vc_user_connect VARCHAR2 (30)
    := GET_APPLICATION_PROPERTY (connect_string) ;
    BEGIN
    vc_url :=
    'userid='
    || vc_user_name
    || '/'
    || vc_user_pw
    || '@'
    || vc_user_connect;
    FOR i IN 1 .. LENGTH (vc_url)
    LOOP
    v_a := LTRIM (TO_CHAR (TRUNC (ASCII (SUBSTR (vc_url, i, 1)) / 16)));
    IF v_a = '10'
    THEN
    v_a := 'A';
    ELSIF v_a = '11'
    THEN
    v_a := 'B';
    ELSIF v_a = '12'
    THEN
    v_a := 'C';
    ELSIF v_a = '13'
    THEN
    v_a := 'D';
    ELSIF v_a = '14'
    THEN
    v_a := 'E';
    ELSIF v_a = '15'
    THEN
    v_a := 'F';
    END IF;
    v_b := LTRIM (TO_CHAR (MOD (ASCII (SUBSTR (vc_url, i, 1)), 16)));
    IF v_b = '10'
    THEN
    v_b := 'A';
    ELSIF v_b = '11'
    THEN
    v_b := 'B';
    ELSIF v_b = '12'
    THEN
    v_b := 'C';
    ELSIF v_b = '13'
    THEN
    v_b := 'D';
    ELSIF v_b = '14'
    THEN
    v_b := 'E';
    ELSIF v_b = '15'
    THEN
    v_b := 'F';
    END IF;
    vc_url_temp := vc_url_temp || '%' || v_a || v_b;
    END LOOP;
    vc_url :=
    '/reports/rwservlet?server=rep_appsrv_frhome1+'
    || vc_url_temp
    || '+report='
    || reportname
    || '+destype=Printer+desformat='
    || runformat
    || '+paramform=No+'
    || userparameters;
    WEB.SHOW_DOCUMENT (vc_url, '_blank');
    END;

  • Dont want to display "Report Successfully Run"

    Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Document.If my report is sent to printer successfully there is no need to display browser window with the above mentioned message. Is there any solution for this???

    Code in when-button-pressed
    DECLARE
    V_Usr_Prm Varchar2 (1000);
    BEGIN
    V_Usr_Prm :=
    'FROM_REF_NO='
    || P_FRM_REF_NO
    || '+TO_REF_NO='
    || P_FRM_REF_NO
    || '+P_PRE_BY='
    || P_PRE_BYE
    || '+P_VR_TYPE='
    || P_VOR_TYP
    || '+YEAR1='
    || P_VOR_YER
    || '+MNU_IDE=0'
    || '+P_PRN_FLG=1';
    web_show_document_proc ('HTMLCSS', 'Y:\02\\02\VOR_PRN.REP', V_USR_PRM);
    END;
    Procedure Web_Show_Document_Proc is
    PROCEDURE WEB_SHOW_DOCUMENT_PROC (runformat varchar2,
    reportname varchar2,
    userparameters vARCHAR2)
    IS
    i NUMBER (10);
    v_a VARCHAR2 (10);
    v_b VARCHAR2 (10);
    vc_url VARCHAR2 (1000);
    vc_url_temp VARCHAR2 (1000);
    vc_user_name VARCHAR2 (30) := GET_APPLICATION_PROPERTY (username);
    vc_user_pw VARCHAR2 (30) := GET_APPLICATION_PROPERTY (password);
    vc_user_connect VARCHAR2 (30)
    := GET_APPLICATION_PROPERTY (connect_string) ;
    BEGIN
    vc_url :=
    'userid='
    || vc_user_name
    || '/'
    || vc_user_pw
    || '@'
    || vc_user_connect;
    FOR i IN 1 .. LENGTH (vc_url)
    LOOP
    v_a := LTRIM (TO_CHAR (TRUNC (ASCII (SUBSTR (vc_url, i, 1)) / 16)));
    IF v_a = '10'
    THEN
    v_a := 'A';
    ELSIF v_a = '11'
    THEN
    v_a := 'B';
    ELSIF v_a = '12'
    THEN
    v_a := 'C';
    ELSIF v_a = '13'
    THEN
    v_a := 'D';
    ELSIF v_a = '14'
    THEN
    v_a := 'E';
    ELSIF v_a = '15'
    THEN
    v_a := 'F';
    END IF;
    v_b := LTRIM (TO_CHAR (MOD (ASCII (SUBSTR (vc_url, i, 1)), 16)));
    IF v_b = '10'
    THEN
    v_b := 'A';
    ELSIF v_b = '11'
    THEN
    v_b := 'B';
    ELSIF v_b = '12'
    THEN
    v_b := 'C';
    ELSIF v_b = '13'
    THEN
    v_b := 'D';
    ELSIF v_b = '14'
    THEN
    v_b := 'E';
    ELSIF v_b = '15'
    THEN
    v_b := 'F';
    END IF;
    vc_url_temp := vc_url_temp || '%' || v_a || v_b;
    END LOOP;
    vc_url :=
    '/reports/rwservlet?server=rep_appsrv_frhome1+'
    || vc_url_temp
    || '+report='
    || reportname
    || '+destype=Printer+desformat='
    || runformat
    || '+paramform=No+'
    || userparameters;
    WEB.SHOW_DOCUMENT (vc_url, '_blank');
    END;

  • Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    If the Belkin supports the A2DP (Stereo Bluetooth) profile then it will work.

  • Hi, I have CS6 Design and Web Premium and dont want to have a subscription model. Is there an alternative at Adobe or should I swap to Corel.

    Hi, I have CS6 Design and Web Premium and dont want to have a subscription model. Is there an alternative at Adobe or should I swap to Corel.

    Andre,
    Why not use the obvious alternative: Stay with CS6?
    Many do.
    That will give you at least as much compatibility with others using Adobe applications as will a switch to Corel.

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    It will be backed up on your computer and can later be restored to an iOS device using iTunes, if desired.  Of course, if your hard drive crashes you'll lose it if it isn't backed up somewhere else.  If you want to included it in your computer backup, it will be located at one of the following locations:
    Mac OS X: ~/Library/Application Support/MobileSync/Backup
    Windows XP: %AppData%\Apple Computer\MobileSync\Backup
    Windows Vista: %AppData%\Roaming\Apple Computer\MobileSync\Backup
    Windows 7: %AppData%\Roaming\Apple Computer\MobileSync\Backup

  • Hello, ive a problem, i´ve bought an iphone 5s and when i try to log in Icloud i´ve a error. The error is that this iphone have created the maximum quantity of free acounts... Dont want to create a new account, just want to log in

    Hello, i´ve a problem, i´ve bought an iphone 5s and when i try to log in Icloud i´ve a error. The error is that this iphone have created the maximum quantity of free acounts... Dont want to create a new account, just want to log in.

    Then don't choose the option to create a new iCloud account. Choose the option to log in with your existing account.

  • PDF is not opening in Mac Firefox, asking for save/download, I want to open it inside browser

    Hi,
    Im facing an issue with Mac Firefox, when Im trying to open pdf file in FF for Mac, its asking for download/save rather than opening up inside browser window like other browsers do.
    Can you please help me out to solve this, its happening only with Mac Firefox.
    Thanks.

    Please provide the following information:
    Which version of Acrobat you are using?
    Which verion of FireFox you are using?
    Which version of Mac OS X you are using?
    It will help those who want to help do so.

  • If i want to open firefox the browser opens but it instantly becomes black, i can close or minimize it but it still remains black

    firefox worked perfectly al these year, but suddenly it just became black when i open the browser. just for a couple of seconds the browser shows everything but than it becomes black. i can minimize and close it but nothing happens. i tried clicking anywhere but no results, please help

    hello jay25, [https://support.mozilla.org/en-US/questions/940393#answer-377118 from another user] we found out that this might be related to malware active on your pc. please close all firefox windows and try [[Troubleshoot Firefox issues using Safe Mode|running firefox in safemode]] (by pressing the shift key while you're starting it). in firefox safemode go to firefox > addons > extensions and remove the entry named "Codec v1.0" or any other addons that look suspicious & you have not installed intentionally. afterwards see if you can run firefox normally again...
    please also do an in-depth scan of your system with the security software already in place and/or a different tool like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & keep firefox and your plugins up-to-date in order to stay safe on the web.
    [[Troubleshoot Firefox issues caused by malware]]
    [[Update Firefox to the latest version]]
    https://www.mozilla.org/plugincheck/

  • HT201263 I dont want to restore it though i just want it to go back to the way it was

    I tried to update my iphone and its stuck in recovery mode and i dont want to recover it i just want it to go back to the way it was

    The onlhy way is to do exactly what it's prompting you to do..recover it.  You can then restore the more recent backup to get things back to how you wan them.

  • Can i embed openfile dialogbox in flex stage? (dont want to open it separatly)

    i want fileopen dialogbox (myFileReference.browse(allTypes);
    ) embedded i flex app , so that i may be able to browse files without opening and closing file open dialogbox again and again. any idea?

    Thanks for the link but honestly about halfway through it all started going over my head (I'm no expert at this stuff yet). What I understand (I think) is that Font.registerFont() is being called by Flex when I embed a font via css/ttf files and then choose to have them compiled into SWFs and loaded by StyleManager. I don't really mind the SWFs not unloading since we only use two different fonts in our app, I just don't want to have to embed them twice (once in Flex and once in Actionscript). The fact that I have to embed as CFF for spark components, which won't work with my AS3 TextField components, makes me think that I have no other options but to embed two times. So even if I do need to do that in my CSS, how would I actually assign the registered fonts that the StyleManager loaded to the Textfields in my other components? Would it be part of a TextFormat object assigned to the text field like how you usually do it in AS3? Thanks for your help.

  • Safari dont want to open only one (my own) website, the post connected to this site cant download any emails

    Sorry for my english.
    I have my own website (can tell you the name, if you ask). In December after I have installed 5.0.1 my website and the post doesnt work via 3g, gprs.
    With wi-fi everething is ok. In opera via 3g, gprs, wi-fi everething is ok.
    thank you

    Dear Forum viewers,
    With lots of digging and faffing around I have discovered what the problem was.
    A supposedly benign programme that had been running in the background for years,was the culprit.
    It took some finding, it is a complete b4st4rd!
    Uninstall 'Peerguardian' whatever you do.
    Problem solved.
    Cheers,
    Chris

  • Can I change the file path that itunes reads my music files from? 65000 files trying to be transferrd from external to internal HD. I dont want itunes to manage my collection, just read it. thanks

    Can I change the file path that itunes reads my music files from?
    I have about 65000 music files that i have transferrd from my external to a new laptop internal HD.
    I have organised the folders myself as I use a PC and do not want itunes to organise the folders because when I'm searching through music on windows it is sorted out by artists/albums with 'the...(eg  The Beatles)' under 'T' instead of 'B'.
    Long story short.... Is there any way that I can keep my itunes library as it is on the external HD and copy it to the new laptops C drive, keep all the info (playlists etc) and still have the same folder structure as on the external HD?
    Or, is there any way of making windows sort things in alphabetical order like it is in itunes (eliminating the 'the' issue)?

    The files that weren't inside the media folder on the original machine need to be copied over to exactly the same paths as they had on the source machine. See this thread for an ongoing discussion of a similar problem. See also this post on migrating the iTunes library.
    tt2

  • 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

Maybe you are looking for