Submiting reports with copies option from forms

Hi ,
I am submitting a report from the form with copies = 3 , but the copies are printed 3x3 = 9.
Does any one know why it is printing 3 x 3 instead of 3
the code is as follows:-
IF par_destination = 'PRINTER' THEN
     SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESTYPE,PRINTER);
     SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESFORMAT, v_desformat);
     SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESNAME, par_printer_name);
ELSE
     SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESTYPE,CACHE);
     SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESFORMAT, v_desformat);
END IF;
     SELECT substr(par_rep_filename,1,instr(par_rep_filename,'.')-1) || '-' || v_next_reqno
     || '.' || DECODE(v_desformat, 'dflt', 'lst', 'wide', 'lst', v_desformat)
     INTO v_rep_output_filename
     FROM DUAL;
v_file_path := v_file_path || v_rep_output_filename;
v_url_path := v_url_path || v_rep_output_filename;
SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_SERVER, v_repserver);
v_report_other_params := 'mode='||v_mode || ' orientation='||par_orientation || ' paramform=no'
||' copies='||3||' blankpages=no'
|| ' ' || par_rep_user_params;
message('other value -'||v_report_other_params);
SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_OTHER, v_report_other_params);
v_rep_instance := RUN_REPORT_OBJECT(v_repid);
Please could some one help me with this.
Thanks
Bain

Hi,
if copies='||3||' isn't the problem, as it should be 'copies=3' then I would check the user parameters you append at the end.
Frank

Similar Messages

  • Calling report with parameter screen from form using frmrwinteg

    Hi,
         I am calling a report with a parameter screen from a form and am using the frmrwinteg bean. This works fine on our test application server but, when moved onto our production application server, the database logon screen is presented after pressing the submit button on the parameter screen. The cause of the problem seems to be the html generated to simulate the parameter screen. The html on the test application server contains a BASE tag in the HEAD section with an href starting "http:/servername.companyname.com". However, the same tag in the html generated on the production application server is missing the ".companyname.com", causing the cookie produced by the frmrwinteg bean to not be found. Does anyone know how the BASE href tag is generated and what I need to change to get the correct BASE href value? I am using Forms/Reports 10g R2 and Application Server 10.1.2.
    Cheers.....

    Appendix "A" of this document describes how cookie_domain works:
    http://otn.oracle.com/products/forms/pdf/10g/frmwebshowdoc_rep.pdf

  • In my MacBook Pro, finder is crashing after logging in. It is showing crash report with Relaunch option, when i click on Relaunch option finder is working properly but i am unable to see top bar(Apple, Date, Wifi). Even in safari address bar not accepting

    In my MacBook Pro(10.7.5), finder is crashing after logging in. It is showing crash report with Relaunch option, when i click on Relaunch option finder is working properly but i am unable to see Top bar(Apple logo, Date and Wifi etc... bar). Even in safari address bar, TextEdit not accepting any text means when type something not showing up and also i am unable operate any thing from keyboard. Plz help me…..

    One thing that you can try is installing a 'fresh' version of OS X Lion. Boot into your Recovery partition (holding down the command and R keys whilst booting) and elect to install OS X from the Recovery screen. You need not erase your hard drive and you should not lose any of your data.
    Oh, and just as a precaution, I would use Disk Utility, once you're in Recovery mode, to verify your hard drive before trying to install the OS again.
    Clinton

  • Print or download ALV report with sort options

    Dear friends,
    How i can download into excel or print ALV report with sort options, like customer name column with similar values should not repeat in the print out or download file.
    Regards,
    Praveen Lobo

    Hi Praveen,
    Use this code, its working:-
    *FOR SORTING DATA
    DATA : it_sort TYPE slis_t_sortinfo_alv,
           wa_sort TYPE slis_sortinfo_alv.
    *          SORT W.R.T. CUSTOMER NAME
      wa_sort-spos = 1.
      wa_sort-fieldname = 'NAME1'. "field customer name
      wa_sort-tabname = 'IT_KNA1'. "internal table with records
      wa_sort-up = 'X'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    "this will sort the ALV o/p for customer with same name
    "now the name will not be repeated
    "records with same name will be grouped
    *          DISPLAY RECORDS IN ALV GRID
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program                = sy-repid "report id
        it_fieldcat                       = it_field "field catalog
        it_sort                           = it_sort "sort info
      TABLES
        t_outtab                          = it_kna1 "internal table
      EXCEPTIONS
        program_error                     = 1
        OTHERS                            = 2.
      IF sy-subrc <> 0.
      ENDIF.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir
    Edited by: Tarun Gambhir on Dec 31, 2008 1:13 PM

  • How to make report with access 2010 from SharePoint Discussion lists 2013

    HI,
    I want to make an access report from SharePoint Discussion lists 2013. When i open the list with access, the body of the list is in HTML format in access. Also if i reply something to one subject in the discussion, the reply is not mapped to that subject
    but instead it is shown as a separate entry in the database.
    Anyone can please help?
    SAN
    Santhiya
    Santhiya

    Hi Santhiya,
    I have seen a similar post from you, my understanding is that you wonder that the reply is mapped to the related subject. You can take a look at Daniel's reply in the following thread:
    http://social.technet.microsoft.com/Forums/en-US/dfb5bcb9-0076-412a-b34f-46aa9cfba876/how-to-make-report-with-access-2010-from-sharepoint-discussion-lists-2013?forum=sharepointgeneral
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Generating Report with vertical lines from Designer

    Hi:
    I would like to get any suggestions about generating tabular reports with vertical lines from Oracle Designer 6.0 on Windows NT.
    Any help will be appreciated.
    Thanks in advance

    Hey c2petrov,
    Thanks for using Apple Support Communities.
    After reviewing your post, it sounds like you are having trouble with the screen. A frustrating situation to be sure. This article addresses issues with video on internal or external displays.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573
    Have a nice day,
    Mario

  • Calling report with no parameters from a form should report be a JSP file?

    Hi,
    I'm completely new to the Oracle environment and am having a few beginner problems all I want to find out is how to call a report from a form. I know this question has been asked before but I can't work it out from the answers because people seem to keep talking about rdf files:
    I am trying to call the report with the following code:
    Declare
         report_id REPORT_OBJECT;
         v_rep varchar2(100);
         rep_status varchar2(20);
    Begin
         report_id:= FIND_REPORT_OBJECT('EmployeeRep');
         v_rep := RUN_REPORT_OBJECT(report_id);
    END;
    My report is called 'EmployeeRep' but it saves it as a JSP file and there is no option to save as an rdf as is mentioned in other posts. I can understand the environments confusion because there is no directory information with the find_report_object command. Does the report have to be stored in a certain directory.
    All I have done with the report is created it from the emp table of the sample Scott database. Any help is appreciated and nothing is too obvious as I say I'm completely new to this.
    Thanks
    Dan

    Try to pinpoint what is going wrong:
    1. Run the report stand alone (from Reports Builder). If that doesn't work, then it won't work calling it from Forms either.
    2. Check if anything has run at all, or if there are report error messages with:
    http://localhost:port/reports/rwservlet/showjobs?
    For a standalone Report Server use:
    http://localhost:port/reports/rwservlet/showjobs?server=rep_server_name
    3. If it does work, call it from Forms. Is the report output file created (e.g. in the cache directory if destype=cache)? In your code you have run_report_object, but you won't see any output on your screen. To see the output add web.show_document(...) to your report. There are many examples in this forum if you search for run_report_object.

  • Is it possible to call diff  report queries when called from form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    Sandeep,
    this property is used with passing Record Groups as data parameters from Forms.
    Passing the query name indicates that the values contained in the record group substitutes the result of the named query. This may work in client/server Reports, but it definitively doesn't work on teh Web because you can't pass a Record Group as a data parameter in this environment.
    Te problem with changing a Reports query is that you must meet the same number of columns and column types as they exist in the Report. I didn't spend much time with XML based runtime customization in Reports. I think that you can change the Reports query through this feature. In Forms you would create the XML file using text_io and the merge it with an existing Reports. I never did this before. So it could be that all I am saying does not work in the end. Before following this idea, you may better ask in teh Reports forum on OTN if it is possible to use the runtime customization feature to modify the Reports query.
    Fran

  • Reports are not called from form in browser plz help

    Hi,
    I have installed 9iAS+8.1.7 database on the same machine with NT4 server.My system's forms(.fmx) are running well but my reports are not running from my main form.i call reports from the
    from as,
    Run_Product(reports,'..\iReports\xglrxx12.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);
    Actually want to know the report's setting when calling from the from in a browser(environment variables,virtual paths etc.).
    My database is installed in drive E:\8idb_home\ and 9iAS is on
    G:\9iAS_home\.My systems .fmx & .rep files are in "iforms" and "ireports" folder respectively.
    Plz help!
    Many thanks!

    Hi,
    First of all thanks to Vincent Botteman for solving the prob.
    Yes when i changed my call of run_product by excluding the path i have specified when calling from form it then makes a result.
    Also specified the entry of your reports .rep files by giving path in reports60_path registery variable as,
    Run regedit-->Hkey_Local_Machine-->Software-->Oracle here give the full path of your .rep files as an first entry in reports60_path variable.And finally not mention the path when calling reports from form as,
    Run_Product(reports,'xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Correct way.
    Run_Product(reports,'..\iReports\xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Wrong way.
    Regards!

  • How to run report with selected data in form?

    Hi,
    Imagine I have a form with a Data block with this inside :
    Code | Name
    1 | Product1
    2 | Product2
    I want to run a report that will only select these 2 records from the table "product".
    I manage to run a report from forms, but it's a pre-defiined report that will always display the same things. (all the table)
    Maybe it's with the paramlist, would you have an exemple or tutorial about that?
    Edit : When I create the report object in the form, I can give the source Data Block, but how to use in the report Data Model?
    Edited by: Danicela on 24 avr. 2009 10:41

    One way to achieve this is to use a "temporary" ID-table.
    Create a table with just two columns RUN_ID and ID
    Then, in forms before starting the report, create a new RUN_ID, e.g. by using a sequence and then, for every record in your block, create a record with the RUN_ID and the record's PK-column-value, in your case this might look like
    RUN_ID  ID
    4711     1
    4711     2Commit that data in Forms (e.g. with using an autonomous transaction).
    Now, pass the RUN_ID as a parameter to the report, and in reports, restrict your query like
    SELECT ..
      FROM YOURTABLE
    WHERE ID IN (SELECT ID
                    FROM ID_TABLE
                   WHERE RUN_ID=:PARAM_RUN_ID
                 )To be clean, delete the data with the run_id in the AFTER-REPORT-trigger of the report.

  • Printing a report with print sheets from the portal

    It is my understanding that a print sheet uses a variant to make a connection between the variable settings set in the web portal and the variable / filtering settings that are used when printing a report. It is also my understanding that without a print sheet and variant that when a user prints a report from the portal that the printed report would not have the same filtering (variable settings) as what the user sees in the report. I have created a report and a print sheet that uses a variant, but when we view reports in the portal there is not a print icon... we can only print from the browser. Printing from the browser only prints what is on the screen, not a formatted report set up in the reporting agent. How do I print a report that uses a variant and a print sheet set up in the reporting agent to be available to print from the portal... i.e. display an icon to print the report? If you have a better or more detailed explanation of what a print sheet is and how to set it up, please include that as well.

    The BW Reporting agent print settings is used for batch printing of BW reports not online printing from the web.
    Currently there are no SAP delivered formatted reporting print functionality for BW. BI 7.0 will have formatted reporting and PDF export options.
    SAP had recently released a How to Document on printing using MS Excel. See the attached link for the same.
    https://websmp205.sap-ag.de/~sapdownload/011000358700001853752005E/HowToWebPrintingWithExcel.zip
    Also this has been discussed in some other threads also:
    Web template entire page print ?
    Thanks.

  • Print report to client printer from forms

    Hi,
    I need to print a report directly to a client printer.
    There is a utility called ORARRP - Oracle Reports Remote Printing Utility.
    But the document I saw was from Oct 2001 - so is this still the only and best option ?
    I'm using RUN_REPORT_OBJECT in forms to launch the report.
    This works fine when the DESTYPE is FILE and DESNAME = PDF
    The PDF-outputt is then successfully shown with WEB.SHOW_DOCUMENT
    When changing DESTYPE to PRINTER and DESNAME to clients printername then report won't run. "Report filed with error message TERMINATED_WITH_ ERROR".
    Is it possible to print directly to a client printer using RUN_REPORT_OBJECT ?
    (Our client printers are not networkprinters)
    Environment:
    Forms [32 Bit] version 9.0.4.0.19
    Report Builder 9.0.4.0.33
    Reportsserver on linux
    Thanks !
    Sam

    (Our client printers are not networkprinters)This means you cannot print from the server directly on the client printer with destype=printer, since the server cannot see the printer.
    So, a manual print command by the user from the browser or the orarrp utility are your options.

  • Error when sending report output to printer from Forms 10g

    Hi,
    I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
    terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
    Thanks,
    Anna
    PROCEDURE SEND_TO_PRINTER IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    rep_server system_variables.reports_server%type;
    alldone          exception;
    BEGIN
         select reports_server
         into rep_server
         from system_variables;
         if rep_server is null then
              msg_alert('Error getting the reports server name', 'I', FALSE);                
              raise alldone;
         end if;
         :ctrl.run_report_errors := 'N';                    
         repid := find_report_object('REP_OBJ1');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         IF :ctrl.rg_print = 'P' THEN
              --Send the output to printer.
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
         ELSIF :ctrl.rg_print = 'R' THEN
              --Rich Text Format
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
         END IF;
         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
              null;
         ELSE
              :ctrl.run_report_errors := 'Y';
              msg_alert('Error when running report.' || rep_status, 'I', FALSE);           
         END IF;
    EXCEPTION
         when no_data_found then
              msg_alert('Error getting the reports server name', 'I', FALSE);      
         when alldone then
              null;     
    END;

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • Remove the Crystal Reports (.rpt) Export Option from IE Viewer

    When I click the "export" button from my IE Crystal Viewer the first export option is "Crystal Reports".  I need to get rid of that option as I don't want my clients to export my report to an .rpt file. 
    How do I manage this list in .Net 2005?  I know there is a file that needs to be modified but I just don't know which one.

    When you click on Export button a window should pop up which contains a dropdown for all formats.
    As you are not getting dropdown.The .js file is not correct.Copy the same file from some other machine of same version or
    You can try with making changes in export.js file.
    Path of export.js file is :
    C:\WINDOWS:\Microsoft.NET\Framework\v2.0.50727\ASP.NET ClientFiles\CrystalReportWebformViewer3\JS\export.js
    Create backup of that file before editing.
    Hope this helps!!
    Regards,
    Shweta

  • Reports with COPIES 1

    HI Gentlemen,
    I have to run my report twice, once with 'Original' and once with 'Copy' in the top margin. It works fine if I execute it twice, supplying a text parameter from outside. However, this generates two PDF files. This is undesirable--they should be kept together. Is it possible to be aware: the first copy is done, change the field value to 'Copy' and do the second run with it? I did not find anytyhing so far. I did a lot of experiments with format triggers etc.--no success. Could you help me?
    Thanks in advance, kind regards from
    Miklos HERBOLY

    Copies>1 only means that the output is duplicated. So, no you cannot change the layout directly. See this thread for a solution:
    Number of copies

Maybe you are looking for

  • I need to upgrade MacBook Pro

    Hello and happy new year to you guys! I own a MacBook Pro 15" 2,53 GHz mid-2009. since I'm a poor student I can't really afford buying a new one for now, I just purchased an iPad mini 2 (which I don't regret at all). So here I wanted to upgrade it si

  • 720x480 resolution is bad

    I'm a noobie to Encore, I just created my first disc. The source is a Primere Pro project at 1920x1080 but after Encore gets through with it it's 720x480 and I can't find any way to change it. I know DVD doesn't support 1080p but I thought that it di

  • Texts in other languages

    Hello,            We have a report  which should be shown in Italy language.How can we achieve this in BW? As far as I know, In order to support multiple languages, the following is must: 1>    The language specific descriptions must be maintained in

  • I have a problem with face time

    I have a problem with face time as the mobile is sending messages to a no in UK which is 00447786205094 and this charges me a lot and I notice that it is sending this message to activate face time

  • SYS_GUID()  SQL functions within XQuery

    Is there any simple way to invoke regular SQL functions from within XQuery? I would like to create an identifier attribute, and set the value to SYS_GUID(), but when I try to directly embed the function, it comes back saying: ORA-19237: XP0017 - unab