Web.show_document to print reports

hi,
i am using web.show_document to print reports. when i print a report, a new browser window is displayed, i don't want this to happen, or at least close the windows that appear automatically, i hope someone can help me.

thank you deepak rai for your concern,
i have tried all the targets in the show_document call. they either produced a new window, or replaced the current window containing the result of printing, i don't want any effect to take place on the windows, printing only.
thank you again

Similar Messages

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

  • Web.show_document() to display report in cache?

    AS & DS 10.1.2.0.2.
    I try to use run_report_object to generate report in Forms.
    Report Destination Type: CACHE
    report status 'FINISHED'
    I checked cache <o-h>\reports\cache, the report is there. But nothing is show on screen.
    Do I HAVE TO use web.show_document('url') to display report in cache?
    If yes, what url I should use? If no (hope so), what I should do to bring the report to browser?
    Thanks.

    Do I HAVE TO use web.show_document('url') to display report in cache?Yes. See examples in http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf

  • Problem with web.show_document in calling report

    Hi ,
    I have started the reports server... Programs->run->"C:\oracle\product\DevSuite10g\BIN\rwserver.exe server".
    The system started a report server called "f".
    Pressing a button:
    declare
    begin
    URL_VAR:='/reports/rwservlet?server='||rep_server_name_var||'&report=texnikos_user\mod3_hmerolog_kinisis_.RDF'||'&desformat='||desformat_var||'&destype='||destype_var||'&userid='||username_var||'/'||password_var||'@'||tns_var||'¶mform='||param_form_var;
      WEB.SHOW_DOCUMENT(URL_VAR,'_parent');
    end;The system displays the error:
    REP-52266: failed starting the Reports Server f.oracle.reports.RWException: IDL:oracle/reports/RWException:1.0.
    As action Oracle points out about it:
    Please make sure the server is not already started as a stand alone server.
    But there is not.... The server f has started successfully....
    Do you have any idea why is that...???
    NOTE: I use Oracle Dev10g. I also noticed that in the window which shows the status of the report server... in the last line as "active threads"(i don't know if i translated into english right ... the status is displayed in greek) that there are 2. Is this problem...???
    Thanks, alot
    Simon
    Message was edited by:
    sgalaxy

    Eventually , the report run... when the active thread got the value 1. How is it done...(i mean the value of 1 , instead of 2 when the report started...????) How to secure that the active thread would be 1 if this is the problem...????
    However , because the report is 2 page accross.... the report displays the first page and down the other page.... Is it possible to display both pages accross as i see them in report builder env....?????
    Thanks , a lot
    Simon

  • Web.Show_Document does not work with long running reports

    I am using Web.Show_Document() to call reports from Forms. Everything works fine for smaller reports. However for long running reports I do not get the output instead get the page "This page cannot be displayed.". On checking the job status on the report server I find that report is still running and completes after some time but by that time my http request has already timed out. What configuration do I have to change to make my long running reports work.
    Thanks

    So, looks like this is an IE issue. I need to add the form server site to my list of Trusted Sites. Once I did that, everything started to work fine. Thought I'd share in case anyone is really interested.....

  • Running report with web.show_document

    We are using web.show_document to run reports which have parameter forms. destype=CACHE , desformat=pdf . We are also using the javabean which hides the login credentials as a cookie.
    The output displays OK then the user wants to email it, so they use the mail button on the adobe reader toolbar.
    They are asked whether they want to link or copy even though link does not work.
    If they choose copy, the result is an email with an attachment called 'servlet' with no extension.
    The recipient of the email has no idea what a servlet is, and more importantly they do not know how to open the file.
    Does anyone know how to get around these problems ?

    Ino
    Your method is fine if run_report_object is used. However, in order to display a parameter form, the report must be run with web.show_document. If web.show document is used twice, first to run the report and then to display it, the second does not wait for the first to finish, even if a synchronize is put between them.
    So, as soon as the parameter form appears, the second show_document appears in front of it saying it cannot find the file. Dismissing that allows access to the parameter form, the report runs and gives a success message but no output.

  • WEB.SHOW_DOCUMENT

    Hello
    I used this code on form, button mouse click trigger.
    WEB.SHOW_DOCUMENT('http://<IAS_IP>:7778/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?','_blank');
    When I clicked it open another window but it lost the port number 7778 on the URL address then it gives the error page cannot display.
    http://<IAS_IP>/reports/rwservlet/getjobid38?
    If I add the port # manuallly it will show the report.
    But the insert/import JPG picture not appear it gives red x on the left corner.
    How can i solved this problem to retain the port# when calling the report? Anyone can help me please.
    IAS10gR2. OS windows server 2003R2.
    Furthermore where i can set the path of the report so that no need to specify the drives/folder which reports resides? I set the path for forms but for report i dont know where.
    I edited the registry but the report path is not accessible.Is there any config like the forms(Forms Edit Environment File: default.env) for report?
    Thank you,
    charles

    Hello Michael
    Thank for your reply.
    Im accessing the IAS on the internet public IP.I dont have now the registered domain name. im only using the IP that the internet provider company provides.
    This my complete work code now..
    declare
    v_rep VARCHAR2(100);
    v_report_server VARCHAR2 (30) := 'rep_appserv_oracleas2';
    v_report_name VARCHAR2(100) := 'c:\ceor\ceor001r'; <<<<<---- HOW TO REMOVE THE DRIVES/FOLDER. WHERE I CAN SET THE REPORT PATH? I MODIFIED THE REGISTRY.
    v_format VARCHAR2(12) := 'PDF'; PDF or SPREADSHEET
    v_format VARCHAR2(12) := 'htmlcss';
    repid REPORT_OBJECT; --- Added
    rep_status VARCHAR2(100); ---added
    v_ip varchar2(100) := 'IAS_IP';
    begin
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_report_server); -- remove ' '
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,v_report_name);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT, v_format);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_1='||:SP_USERCODE); 'p_my_second_parameter='||:block.my_second_parameter);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://'||v_ip||'/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?','_blank');
    ELSE
    message('Error when running report - '||rep_status);
    END IF;
    END;
    If im not wrong your the one who corrected my code before.I need to check on older post.
    its formseleven.
    Re: security on url when calling reports on report10g
    Thank you.
    Charles.

  • Hide address bar w/WEB.SHOW_DOCUMENT

    I am currently using WEB.SHOW_DOCUMENT to run Reports with
    Developer Server. It is outputing as a PDF in IE5. It works
    great. But I have a security concern. The report has to know
    who the current user is to properly fill in some parameters. I
    use the GET_APPLICATION_PROPERTY in Forms to get the USERID and
    PASSWORD. These get passed to the browser as part of the
    visible URL when the report is output as a PDF in the browser.
    I would like to hide the browsers address bar for these reports.
    Is there a way to do this?
    Thanks for any suggestions in advance!
    null

    I can actually answer that! I had the same problem initially.
    I spent a whole day searching both Microsoft and Adobe
    documentation
    and websites. I finally found the answer buried in Acrobat
    Reader's
    documentation.
    In your Adobe folder(I don't remember exactly where) you will
    find
    a file called Nppdf32.dll.
    Simply copy it to C:\program files\internet explorer\plugins
    You should now be able to view pdf files in IE5.
    FYI - Acrobat Reader 4 appears to have some sort of bug in it.
    Once it is installed it will mess up IE5's ability to download by
    clicking on a download link.
    When you click on a link for a download it tries to start Acrobat
    Reader 4 and then the download just fails.
    You can work around this by right-clicking
    on the link and selecting save as. But if it is a button that
    you
    click on to initiate a download you can't do that.
    I have not been able to undo this so if you can I would recommend
    using Acrobat Reader 3
    nirali (guest) wrote:
    : Hi!
    : I dont have answer for your ???
    : But I have one ??? for you if dont mind.
    : I could not get PDF output in IE5. Please let me know
    : what preferences I have to change on IE5 to get PDF output.
    : Thank You
    : Nirali
    : Dennis Lunt (guest) wrote:
    : : I am currently using WEB.SHOW_DOCUMENT to run Reports with
    : : Developer Server. It is outputing as a PDF in IE5. It
    works
    : : great. But I have a security concern. The report has to
    know
    : : who the current user is to properly fill in some
    parameters. I
    : : use the GET_APPLICATION_PROPERTY in Forms to get the USERID
    and
    : : PASSWORD. These get passed to the browser as part of the
    : : visible URL when the report is output as a PDF in the
    browser.
    : : I would like to hide the browsers address bar for these
    : reports.
    : : Is there a way to do this?
    : : Thanks for any suggestions in advance!
    null

  • Can I use web.show_document with forms name parameter ?

    Hi All,
    I need to pass URL to web.show_document but with form name too. Is it possible?
    I'd like to do something like web.show_document('url?report=myReport','_blank')
    Thanks in advance
    Edited by: _blackjack on Dec 13, 2012 2:17 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, you can use any valid URL within web.show_document

  • Reports 9i Printing from Forms with WEB.SHOW_DOCUMENT

    I want to print a Report from Forms via WEB.SHOW_DOCUMENT directly to the printer and it works fine.
    But every time i print it from my web application a new browser-windows opens and shows a message "Printed successfully" or something like that. If I start the printjob again nothing happens - if I press the Browser-Refresh-Button in the new Browser-Windows with the Message ("Printed Successfully") it prints.
    So now I have 2 questions:
    a) How can I disable the "Printed successfully"-Message
    b) What hava I to do that I not must press on the Refresh-Button to start the printing again
    I hope I hava explained my problem clearly. 4
    Here ist the complet WEB.SHOW_DOCUMENT-Command I fire in Forms when a Button is pressed:
    WEB.SHOW_DOCUMENT('http://mymachine:8888/reports/rwservlet?report=testreport.rdf&destype=printer&desname=\\NTS32\VZ_D3&desformat=html&userid='|| sUser ||'/'|| sPW ||'@'|| sDB,'_blank');      
    Many thanx for your help!
    Regards
    Marc

    Hello,
    for the problem:
    b) What hava I to do that I not must press on the Refresh-Button to start the printing again
    may be it just a setting in your Browser ?
    For Internet Explorer :
    go to I.E General Options screen. click on settings button and choose
    "Every visit to the page " option.
    Regards

  • Print Report from Web..

    Dear All,
    I have deployed my 6i reports on OAS Forms and Reports Services (9.0.4), by compiling 6i reports in 10 g report builder.
    These 6i reports have the default parameters like
    Destype=screen
    Desformat=dflt
    But in forms builder 10g in report object I gave
    Destype=cache
    Desformat=pdf
    parameter to run the report from forms using Web.show_document().
    So when take the print from web the format ( indentation, fonts,font size) of the report is little changed as compare to 6i reports format.
    How can I got the exact format ( indentation, fonts,font size) of 6i while print from web(
    by OAS Forms and Report Services)?
    Thanks & Regards
    Rana

    Repost.

  • Calling a report from form using web.show_document

    Hi,
    Used the method as below, But , error reprot not found,
    Could anybody tell me how to get the server name from ny local machine as in the example servername ' Repsrv '
    /* WHEN-BUTTON-PRESSED */
    DECLARE
    vc_url varchar2(100);
    BEGIN
    vc_url:=‘http://<hostname><port>/reports/rwservlet?server='
    ||
    ‘Repsrv&report=reptest.rdf&desformat=htmlcss&destype=cache ’
    ||
    '&userid=user/pw@database&p_deptno='||:dept.deptno||'&paramform
    =no’;
    WEB.SHOW_DOCUMENT(vc_url,’_blank’);
    END;
    Thanks

    If you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
    parm_string := '/reports/rwservlet?config=my_config&report=report_name'
         ||'&desformat=pdf&destype=cache'
         ||'&paramform=no&printjob=no'
         ||'&p_my_user_param1='||v_my_param1
         ||'&p_my_user_param2='||v_my_param2;
    web.show_document(parm_string,'_blank');
    You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
    Hope this helps.
    James K.

  • Calling Reports from Forms (run_report_object and then Web.Show_document)

    Hi all,
    we are in the process to prepare a Forms-Migration from 6i to 10g and like probably most of the other Forms-Customers we also use Reports.
    We have setup a test-scenario with Forms/Reports Standalone Installation. So we have some Forms running and we are now starting to test reports.
    I have created a Test-Form to call run_report_object in the documented way. That means described in the white paper. set the parameters, then call the run_report_object BUILTIN and when the job is finished, I do a call to the Web.Show_Document BUILTIN with "getjobid". As destype I use "CACHE"
    So far so good, that works like a charm.
    But after seeing the output in the browser, I can use the URL as a template and only change the jobid and then I can see all other reports as well, whether the output is from me or not. Even worse if I change the URL to use the command "showjobs" I can see a nice list with all the output and can click and see all of them.
    Is there a way to secure this in an easy way.
    I have read the white papaer about securing the use of WEB.SHOW_DOCUMENT with a cookie, but that sounds to me that it is meant if I want to run the report with that builtin which isn't the case I am willing to run the Report with "RUN_REPORT_OBJECT" which is secure enough to me, but the output of all jobs can be seen from anybody.
    Because we use the Forms/Reports Standalone Installation (because of License-Costs, ...) Single-Sign_on is no option for us we only want a situation where we can do the same as before.
    Run a report, see the output and nobody else can see it.
    If anybody has an idea how to do it, that would be great.
    Thanks,
    Mark

    thanks for the answers,
    but I'm still thinking that there is no "easy" Migration-Solution for our request.
    Running a report and after doing whatever needs to be done (read, print, ...) and don't care about additional security because nobody else can read it.
    But that might be the price for the bunch of new features in the "Web"-World were you never know where your application runs and you have to secure a lot more stuff then before.
    Anyway I think we proceed with a combination out of the adviced Metalink Note : 437246.1. We can set the expiration-parameter, we cannot set diagnostic=NO because we use Run_Report_Object but we can change httpd.conf and we reject all calls to showmap, showjopbs, etc.
    I'm not sure whether we need the rewrite part, but we'll see.
    Thanks,
    Mark

  • 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

Maybe you are looking for

  • Error when setting up cloud appliance "BW 7.4 MaxDB Trial"

    Hi there, I am currently trying to set up the cloud appliance "SAP NetWeaver Business Warehouse 7.4 incl. usage type BI Java on SAP MaxDB – Trial Edition" on AWS but always run into the same error. According the the Cloud Appliance Library monitor, t

  • Time machine ridiculously slow since upgrading to Lion

    Hiya, I have a Macbook Pro and an Apple TimeCapsule, since upgrading to Lion last week, it is having stupidly slow throughput, i've had to cancel the backups as i don't have the hours in the day to let it complete.  this isn't a 3rd party device, it'

  • Please read this, BAFFLED!

    Hey all... I'm a power user and I am stumped. This is regarding using the shufle to store files (basically as a jump drive)... I can drag files and store them fine. Open them from within the shuffle fine. BUT, a BIG but. I cannot drag the file/s off

  • Potential Directory Harvest From Internal Host??

    Hey all, Been seeing a bunch of these messages over the past week in the logs: Sun Apr 26 23:21:40 2009 Warning: Dropping connection due to potential Directory Harvest Attack from host=('xxxxxxxx, None), dhap_limit=1, sender_group=INVALID_DNS, listen

  • Dba_data_files.increment_by: what kind of units?

    I'm confused about the result in the 'increment_by' column in dba_data_files. Can anyone tell me what units are used here? (below is what I did. I would expect a value of 16M/32M or something related...) CREATE TABLESPACE sushi_data DATAFILE 'f:\data