Run_product

I'm running forms 6i patch 1.
I've created a simple report which works fine and prints out fine in Report Builder.
It also works perfectly in Reports Runtime.
It does not work correctly when kicked off in forms 6i.
I'm setting the orientation to portrait etc.
When I use run_report in forms, it prints the report but at the bottom of the page instead.
Please help
Thanks in advance
null

There are numerous problems when you print to a printer which is not your default printer in Windows.
Make sure that the printer you are printing to is defined as the default printer in Windows.
We are having this problem when we print to a non-default printer we gat blank pages.
I hope that helps.

Similar Messages

  • RUN_PRODUCT is not working

    hI,
    I am working in developer 6i forms and reports. I am trying to call a report from a for using RUN_PRODUCT built in. But it’s generating the following
    Error: FRM-41211: Integration error: SSL failure running another product.
    I think the procedure used for running the report is ok because it’s working in another machine.
    Please help me, how can I solve this problem.
    Best Regards,

    Re-Install the reports again,,
    this is a common Windows Problem

  • Print report directly to printer using RUN_PRODUCT in Forms6i

    Hi all,
    I would like to have information regarding print any .rdf directly to printer from form 6i using RUN_PRODUCT.
    I got help from Form Builder Help option and tried following coding in form
         DECLARE
         PL_ID                    PARAMLIST;
         printername          VARCHAR2(50);
         BEGIN
         PL_ID := GET_PARAMETER_LIST('WEIGHMENT');
              IF NOT ID_NULL(PL_ID) THEN
                   DESTROY_PARAMETER_LIST(PL_ID);
              END IF;
              PL_ID := CREATE_PARAMETER_LIST('WEIGHMENT');
              printername := '"'||'I.T Printer'||'"';
              Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER, PRINTER);
              Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, printername);
              Add_Parameter(pl_id, 'P_EQ_NBR', TEXT_PARAMETER, :weighment.eq_nbr);
              Add_Parameter(pl_id, 'P_WT_GKEY', TEXT_PARAMETER, :weighment.gkey);
              Run_Product(REPORTS, 'c:\wegt001r', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
         EXCEPTION
              WHEN OTHERS THEN
              MESSAGE(SQLERRM);
         END;
    END IF;
    But report did not printed and following message received in Reports Background Engine
    Error submitting report [Thu May 07 18:49:23 2009] ...
    REP-0159: Syntax error on command line.
    Pls help.
    Thanks,
    Hassan

    Hi Heidi
    I have already tried printername := 'I.T Printer'; but result is same.
    This is also my default printer and I tried to add / remove the following coding
    Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, PRINTER);
    but in both cased I received the same error.
    I also tried to print thru HOST command as follows
    the_username := Get_Application_Property(USERNAME);
         the_password := Get_Application_Property(PASSWORD);
         the_connect := Get_Application_Property(CONNECT_STRING);
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid= '||the_username||'/'||the_password||'@'||the_connect||' DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306';
    Host( the_command );
    Host command displays correctly but no printing.
    I then change my command as follows
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid=test/test@test DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306'; and now report prints on printer.
    But I cannot hard coded the username, password and connect.
    Thanks,
    Hassan
    Edited by: Hassan Raza Khan Lodhi on May 7, 2009 6:55 PM

  • Can we avoid username/password screen using run_product

    can we avoid username/password screen using run_product while calling a report from the form.
    how we can use the same login as in form.
    regards

    You can turn security off from your process.
    Go under adminui under Services/Application and Services/Service Management.
    Search for your process and under the security tab you can disable the security or use the 'Run As' feature to run under a specific user context.
    Jasmin

  • Using RUN_PRODUCT to run a report in a web form

    I have a web-based Oracle form with a button that, when pressed, calls RUN_PRODUCT to run a report. Reports Server can find the file and run it, but the screen output appears on the machine running Reports Server!
    Is there a way to have the output appear on the machine running the form? I am running Application Server 9i on a Windows NT 4.0 machine, and the machine I'm using to run the form is running IE 5.5 as well as Windows NT 4.0.

    Use Web.Show_Document and specify the URL for where your report is made.

  • Run_product in DB procedure?

    Reg : Executing an OS command in PL/SQL.
    I used host command in form level procedure to
    send all the .txt files into a master file(eg master.txt)
    From master.txt, i read the flat file names and upload the datas
    into Oracle (by using Text_Io package). But same thing, when i
    used in db procedure with UTL_FILE
    package , I can not proceed with the host command whereas it
    works in sqlplus prompt. Is it possible to give host command in
    db procedure or any other suggestions ?
    2) A process is running at the back end with every 20
    minutes interval of time using dbms_job.submit.
    can I flash a message to any of the terminal/server/session
    after successful completion
    or if error occured?
    3) can I call run_product in db procedure?
    Thanking in advance,
    expecting yr reply soon
    regards
    Radha krishnan
    null

    Hallo
    Radhakrishnan
    i dont know how to do it
    Syam
    S.Radha Krishnan (guest) wrote:
    : Reg : Executing an OS command in PL/SQL.
    : I used host command in form level procedure to
    : send all the .txt files into a master file(eg master.txt)
    : From master.txt, i read the flat file names and upload the
    datas
    : into Oracle (by using Text_Io package). But same thing, when i
    : used in db procedure with UTL_FILE
    : package , I can not proceed with the host command whereas it
    : works in sqlplus prompt. Is it possible to give host command
    in
    : db procedure or any other suggestions ?
    : 2) A process is running at the back end with every 20
    : minutes interval of time using dbms_job.submit.
    : can I flash a message to any of the terminal/server/session
    : after successful completion
    : or if error occured?
    : 3) can I call run_product in db procedure?
    : Thanking in advance,
    : expecting yr reply soon
    : regards
    : Radha krishnan
    null

  • Forms Migration to 11g, RUN_PRODUCT must be declared

    Hi All,
    I'm performing forms migration from 10g to 11g,
    I used Forms Migration Assistant to Migrate forms, But if a form is calling reports then those forms are
    not getting compiled and giving the error RUN_PRODUCT must be declared. I know that RUN_PRODUCT
    is not supported in 11g, but is there any way to configure Forms Migration Assistant so that it replaces this
    code with appropriate code. Forms Migration Assistant program asks for Report server name, Servlet Virtual Directory information for the forms that are calling reports. I don't know what to specify in virtual directory field
    and report servlet field.
    Please help me with this.
    Thanks

    You are replying to an old thread, but it looks like you didn't read it properly. It is stated that
    when migrating from 6i to 10g we have used the wizard to replace RUN_PRODUCT with rp2rro.rp2rro_run_product (rp2rro.pll).So, you also need to use rp2rro.pll if you still want to make use of RUN_PRODUCT. Even in 10g RUN_PRODUCT by itself won't work. As Christian already said:
    you probably could simply remove the call to run_product as in 10g the built-in was available but simply didn't do anything. Did you try that yet?

  • Using run_product to call reports6i on 64-bit os,no log in Report Engine

    When I execute a form 6i with Run_product call to report6i , it hangs on windows 2003 64bit server.
    same works on 32 bit server.
    Any one having similar problem???
    rgds

    Hi Ludek
    <P>
    Let me clarify a bit about the issue we been have:<br>
    For example we have report-1.rpt and report-2.rpt, both are very similar and in fact report-2 have a little bit more information than report-1. So when I install our application on a webserver in Windows 2003 32 bit system, with Crystal Report XI R2 developer edition + SP4, both reports work perfectly fine and application save the report and show it on the crystal report ActivesX viewer. So I made copy of report-1.rpt and report2.rpt with data and kept it a side.
    <P>
    Now I install our application that is the asp files and COM objects on a 64 bit windows 2003 and turned on the 32 bit mode to enable our COMs to work. I then run our application pointing it to the same database I used with the other OS, and I tried to run report-1.rpt and report-2.rpt, so report-1.rpt has failed with the viewer showing but no pages and only the controls. However, the report-2.rpt worked fine with data showing ok. So I copied the 2 reports I generated from the other OS and pointed my view report asp page to these rpt files, again same result report-1.rpt failed and report-2.rpt worked ok.
    <P>
    So I guess what I am trying to say is we are using the exact same COMs on both OS and to generate on both reports, also pointing to the same database using the same connection string. The result is one report is failing on the 64 bit machine.
    <P>
    Now when I try to export/save the report-1.rpt, the report that come with no pages, I get the error below, this is the same error I get if I try to move to different pages.
    <br><br>CRAXDRT Error Occured on Server.70 : Permission denied
    <P>
    Please let me know if I can provide more information.
    <P>
    Many thanks

  • Use of Run_product in Pl/sql block written in forms 5.0

    I am using Run_product built-in in forms 5.0 to make a call to reports runtime. This built-in is being called in a loop to make Payslip report for nearly 2000 employees.
    First of all on running the report for 9 or 10 th employee , the error was given 'MAX OPEN CURSORS EXCEEDED'. to remove this error, settings were changed in init.ora to increase Open_cursors parameter. Now the above error is not coming but after creating 8-9 reports it gives error Numeric or Value error. This error keeps coming for all the reports after that. However this error is coming in an inconsitent manner. One time it gives error for some employees but doesn't gives that error for the same employees next time.

    thanks !
    I could find out few postings on the same topic in the same forum. that answers my question.
    best regards,
    --meghanad                                                                                                                                                                                                                                                                       

  • Diff bet. run_product and srw.run_report

    In reports 6i is there any difference in architecture between using run_product and srw.run_report(which according to 6i doc calls rwrun60.exe)? The reason is I that have the same report submitted by the above two processes produce font difference in the output pdf file. One gives courier and the other gives courier new where as my actual report font is courier.
    Is ther any difference in the architecture?(run_product uses any in-process report server where as rwrun submits to the report server??)?
    Any advice or suggestion or pointers will be highly appreciated!!

    Hi Venkat
    Ensure that your uifont.ali does not have aliases for Courier font under the [Global] or [Printer] section.
    Regards
    Sripathy

  • RUN_PRODUCT error while running in oracle apps11.0.3

    declare
    cursor c1 is select SALESREP_NUMBER,EMAIL_ADDRESS email_address
    from ra_salesreps_all
    where salesrep_number in (100245,100447);
    pl_id ParamList;
    sales varchar2(10);
    p_email varchar2(100);
    p_month varchar2(3);
    p_year varchar2(4);
    begin
    p_month := :atrd_comm_calc.month;
    p_year := :atrd_comm_calc.year;
    for c1_rec in c1 loop
    sales := c1_rec.salesrep_number;
    p_email := c1_rec.email_address;
    pl_id := Get_Parameter_List('salesrep');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('salesrep');
    Add_Parameter(pl_id,'v_month',TEXT_PARAMETER,p_month);
    Add_Parameter(pl_id,'v_year',TEXT_PARAMETER,p_year);
    Add_Parameter(pl_id,'v_srep',TEXT_PARAMETER,sales);
    Add_Parameter(pl_id,'v_email',TEXT_PARAMETER,p_email);
    ADD_PARAMETER(pl_id,'paramform',TEXT_PARAMETER,'NO');
    Run_Product(REPORTS,'d:\comm\test.rdf',SYNCHRONOUS,RUNTIME,filesystem,pl_id, NULL);
    Exit when c1%notfound;
    end loop;
    exception
    when others then
    message(sqlerrm);
    end;

    In forms 4.5 you use run_product, so using it is OK.
    I don't know if you can test your form and report stand alone (outside Oracle Apps). Does that work? If so, it is likely an Oracle Apps problem.
    Also, check if your Forms Developer version and Oracle Apps Forms runtime version are the same.
    There is a special forum for Oracle Apps. You can try there.
    If it doesn't work stand alone either it is a problem in your form. Post your code here.

  • RUN_PRODUCT help

    Hi,
    We currently use the RUN_PRODUCT(FORMS ... to start up a second MDI window. All is well with this code on versions of forms up to 9i. Using forms 11 this command has become obsolete can anybody please advise me of a workaround as I can not think of one to dynamically start a second oracle instance.

    It is not for web forms unfortunately and using the call_form built in will only open the form within the current MDI window.
    I have found a solution by using the Win_API_Shell.WinExec package from the D2KUTIL library.

  • Having problem in using RUN_PRODUCT in oracle apps 11.0.3

    I am having problem in using RUN_PRODUCT in oracle apps 11.0.3. Error in oracle apps is
    FRM-40733 PL/SQL built-in RUN_PRODUCT failed
    What could be the possible cause for this error ?

    Hi again;
    I found this please also check this:
    Price List Migration from 11.0.3 to 11.5.10/R12.
    Regard
    Helios

  • Parameter form not coming up when calling report6i from forms 6i thru run_product

    we are using 3 tier architecture. and using the thin clients on windows platform (netscape navigater 4.7 as browser)
    Middle Tier (IAS ) is on compaq Proliant Windows NT server
    and database is on compaq ALPHA DS20E machine on true 64 UNIX.
    WE are using forms and reports 6i.
    when we are calling a report(from web browser) from a form thru' RUN_PRODUCT report is running with out displaying the parameter form.
    but when we are running the same report in client/server (2 tier)
    parameter form is displaying.
    we are unable to solve this problem.
    Thanks in advance
    Mukesh Sharma
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    we are using 3 tier architecture. and using the thin clients on windows platform (netscape navigater 4.7 as browser)
    Middle Tier (IAS ) is on compaq Proliant Windows NT server
    and database is on compaq ALPHA DS20E machine on true 64 UNIX.
    WE are using forms and reports 6i.
    when we are calling a report(from web browser) from a form thru' RUN_PRODUCT report is running with out displaying the parameter form.
    but when we are running the same report in client/server (2 tier)
    parameter form is displaying.
    we are unable to solve this problem.
    Thanks in advance
    Mukesh Sharma<HR></BLOCKQUOTE>
    But with show_document i have to provide the username and password as url which will be displayed in browser and i dont want to
    provide username and password to end user.
    If Any one have any solution Please revert.
    Thanks
    Mukesh Sharma

  • Run_product problem

    Hi all,
    I have a form which calls a report using the RUN_PRODUCT built in.
    The report gets executed only on certain cases. After much tracing and debugging, I've pinpointed it to one text parameter which i'm passing across. This text parameter is actually a SQL 'where clause' which the report uses.
    It fails when the text parameter contains a value with spaces inside quotes, for e.g, column1 = 'value 1'
    It works when, column1 = 'value1'
    When it fails, nothing happens, the form doesn't come back with any error messages. The report doesn't get launched.
    Can someone tell me if this is a known bug or if there is a clean workaround for this.
    rgds

    Hi,
    The example of the text parameters,
    1) column1 = 'value1'
    2) column1 = 'value 1'
    is just an example. Let's say in this example, the table does contain the two values, 'value1' and 'value 1'.
    This is what i'm experiencing with run_product. When i pass the text parameter as a where clause,
    text parameter : where column1 = 'value 1'
    nothing happens, there is no empty report, the report doesn't execute, there is no error message, form doesn't hang.
    When i pass it as,
    text parameter : where column1 = 'value1'
    the report gets executed. After my debugging, i've pinpointed it to the space inside the quote.
    My workaround at the moment is actually replacing the spaces inside the where clause with a special
    character ~ (where~column1~=~'value~1') before it gets pass and replacing it back to spaces before the report executes. This works, but i was wondering whether there is a cleaner solution.
    rgds
    Hi
    Your query is not clear to me.
    Your statement : "It fails when the text parameter contains a value with spaces inside quotes, for e.g, column1 = 'value 1' "
    It should not return an error. "where clause" passed by you, doesn't satisfy any record in the table. Reports should execute, but as table doesn't
    contain any record in which column1 has a value equal to 'value 1' (with a empty space in the string) and it should return a empty report with no columns.
    Do u get a empty report or form hangs or gets an error that form failed, what excatly happens ?
    With Regards
    Reports team

  • SOS-- run_product

    Hi I am trying to invoke a report from a form module using "run_product" command. THe report and form are not in the same directory. How can I hard code the path instead of declaring the path directly in "run_product" command.
    Thank you!
    null

    Usually you should not hard code the path directly in the Run_Product as it will affect the portability of the Application.
    Set the REPORTS60_PATH environment variable (for Reports 6) in the Registry and Reports will search in this path for the Reports
    e.g;
    REPORTS60_PATH D:\oracle\reports60;c:\app
    Similarly u should set the FORMS60_PATH also so that Forms will search in this path while calling Forms using CALL_FORM,OPEN_FORM, NEW_FORM.
    Hope this helps.
    Thiru

Maybe you are looking for