Checking default printer before running a report

Hi guys,
I'm trying to run a report directly from a form on the Web. However, at form runtime, the only thing known is DESTYPE ('PRINTER') but DESNAME is not. What I would like the form to do first is to check the user's local machine's default printer before running the report, and maybe show a message like: 'Oops, wait a minute dude! Your default printer is 'X', please change your default printer to 'Y' before proceeding.' Or something to that effect. After the change, of course, 'Y' (the name of the printer) gets passed on to DESNAME, and the report printing proceeds from thereon. Well, I think you get the point. Any cool ideas?
null

I can't tell the exact solution.
But just check the Oracle Reports Remote Printing Utility(ORARRP).
U can download this from oracle website.
Using this u can generate o/p to a file and then a double click on that file will display a popup with all the printers accessible for that m/c.
Thx,
Rgs,
Raj

Similar Messages

  • To pass new session variable value to stored proc before running a report.

    Hi,
    Below is summary of the report requirement -
    Database level design
    1. Created a view and a global temporary table (GTT)
    2. Created an Oracle package procedure to accept from and to business dates on basis of which it will fetch, process and populate the GTT.
    Repository level design
    1. Created a business model containing the view and the GTT (mentioned above)
    2. Created two SESSION variables "from_dt" and "to_dt" to be initialized by their respective init blocks. Each of the variable is initialized with a DATE column value (of type DATETIME) from a database lookup table. I have also set the option "Enable that variable to be set by any user" for both variables.
    Query for these variables :
    from_dt = select from_date from <table>
    to_dt = select add_months(from_date,12) from <table>
    Presentation level design
    1. Using a text box, i display the default/initialized values of these variables like this -
    Current business date:@{biServer.variables['NQ_SESSION.from_dt']} Future business dt:@{biServer.variables['NQ_SESSION.to_dt']}
    Dates get displayed in YYYY-MM-DD 00:00:00 format
    The text msg displays these default dates and allows the user to specift different date range for which i create prompts as shown below.
    2. Using any random two columns of date type from the business model, i create two date dashboard prompts with labels "From Dt" and "To Dt".
    i select Calender Controls for both; setting Default To = Report Defaults.
    The Set Variable is set to Presentation variables - such that pv_from_dt maps to "From Dt" and pv_to_dt maps to "To Dt".
    3. i create the report using the business model created above. In the report "Advanced Tab" => "Prefix" field i specify the following -
    SET VARIABLE from_dt='@{pv_from_dt}',to_dt='@{pv_to_dt}';
    Note : The logic here is to display the default dates and allow user to specify different date values which will be stored in presentation variables.
    If the user does specify different "from dt" and "to dt" values, then using the presentation variables, i want to "write" back these new values to the corresponding session variables mentioned above.
    If the user does not specify different date range, then the default/initialized dates must be considered.
    I also display the default and new date values in the report title.
    Back to Repository level design
    To execute the stored procedure that will load the GTT before running the report I need to pass two date parameters to the stored procedure on basis of which it will fetch data, process and populate the GTT.
    In the Connection Pool --> Connection Script Tab --> Execute before query, I wrote the below query using the repository variables FROM_DT and TO_DT to execute the procedure -
    DECLARE
    v_from_dt date;
    v_to_dt date;
    BEGIN
    v_from_dt := VALUEOF(From_Dt);
    v_to_dt := VALUEOF(To_Dt);
    package_name1.package_body(v_from_dt,v_to_dt);
    END;
    Now when i try to run the report i get the following error :
    [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.to_dt, has no value definition. (HY000)..
    Need help on this.
    Is it possible to "write back" a new value to a session variable ?
    Any other alternatives.
    Thanks
    Nusrat
    Edited by: user10309945 on Jan 24, 2011 10:08 PM

    Sandeep, I found a several topics where users describe saving values in DB through stored procedure or function. For example, [How to store OBIEE presentation level variable values in DB |http://forums.oracle.com/forums/thread.jspa?threadID=892006] I tried it and get an error
    *10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 14551, message: ORA-14551: cannot perform a DML operation inside a query ORA-06512*
    It's not a BI error. This error are generated by Oracle DB. If I write next:
    SELECT MyPLSQLFunction(p1,p2) FROM DUAL
    I get the same error.
    Oracle doesn't allow DML operations in SELECT.
    Did you relalize this feature yourself? Where did I mistake?

  • How to set default print orientation in oracle reports 6i?

    Can anyone please help how to set default print orientation of Oracle Reports 6i? Currently document is printed in Portrait orientation, but I need to print it in Landscape orientation. Is this possible?

    It is solved now. Go to Layout Model -> Main Section, Press F4. In the property pallet select the Orientation that is required to be selected when print is taken for that report.

  • Procedure before running the report

    Hi,
    Is it possible to call a procedure before running the report...If yes how...Please guide me
    Regards,
    Pa

    In Application Builder, go to the page you want to create the process on and click the create icon under Page Rendering > Processes.
    Select PL/SQL, give any useful name (like call_procedure) and click next.
    In the Enter PL/SQL Page process field, just enter something like this:
    my_procedure;
    Click Create Process and it is done! Note that this call will be executed every and each time every user accesses the page, right before rendering it (if that is what you want).
    Luis

  • InfoView not defaulting print settings from Crystal Reports XI

    I have a form/report created from Crystal Reports XI published to InfoView that has the print settings set for the manual tray when printed. When running the report in InfoView, it does not default to the manual tray when printing. I am publishing directly from Crystal Reports. I have the Process/Print Setup 'Set layout to: Report file default' and the Schedule/Format 'Use options saved with report' checkbox checked. I am not finding any other settings to tell InfoView to use the report page layout/printer settings. Anyone know of any other options I should check? Thanks!
    Edited by: Kelley Freelove on Oct 22, 2009 3:09 PM

    That would be the correct forum as this one is for SDK issues only.
    If you are not getting helped on the other BO forum you may want to consider creating a case if you have a valid support contract.
    Jason

  • Variable-Selection before running the report

    Hi Bex experts,
    i have a Web-Report with Navigation block.
    Before user run the report he should enter a value for Profit Cetner.
    In Query definition, I defined a simple variable ( typ: user entry/default value).
    Profit center has an attribute u201CStatusu201D.
    We have in system let say more than 1000 profit centers and only 200 of them are with Status u201Cactiveu201D. Like below.
    PC1 activ
    PC2 non-active
    PC3 activ
    u2026
    Before user run the report, he clicks on Selection Button for Profit Center and  he see there all Profit- Center from masterdata  but he want to see only the active Profit -Center for selection.
    Is it possible ?
    Thanks.

    Hi,
    in Backend Level (RSA1) Make STATUS as a Navigational Attibute, insert it as a Nav Attr in Infoprovider
    in Query Designer: create a Manual input variable for the Profit center Status - (Nav Attr)
    when you execute the report,  in the variable screen you will have 2 seperate variables
    1) Profit Center
    2) Profit Center Status (Nav Attr)
    Hopes it will help you
    Regards
    ReddY A

  • Executing PL-SQL Query before running a Report

    Hi Guys,
    Can i use a Run a Pl-Sql Query every time before executing a report. Like if i am opening a report then the pl-sql Query should run before it.
    Thanks
    Rondo.

    Try with Evaluate as one of the column's expression.. so that we can limit to specific report..
    or
    Use Connection Pool->Connection Pool Scripts tab->use 'Execute before query'
    Since we can set the repository variables using advanced tab.. the same variable we may validate using Connection pool scripts tab.
    This might be more dev work..
    Edited by: Srini VEERAVALLI on Dec 17, 2012 9:00 PM

  • How to set the default print format for the report

    Hi,
    In ALV report , i want to defalut specific print format and printer for background processing .
    Any clues!!!!!!!!!
    Regards
    Swatantra

    Hi
    Please check below code:
    DATA: PRIPAR TYPE PRI_PARAMS,
          ARCPAR TYPE ARC_PARAMS,
          LAY    TYPE PRI_PARAMS-PAART,
          LINES  TYPE PRI_PARAMS-LINCT,
          ROWS   TYPE PRI_PARAMS-LINSZ.
    DATA: val(1).
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LOCL'   " <--- Printer Name
        no_dialog              = 'X'
        immediately            = ' '
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *** Specifying the page formats
        pripar-linct = 65.
        pripar-linsz = 190.
        pripar-paart = 'X_65_132'.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        in_archive_parameters  = arcpar
        in_parameters          = pripar
        no_dialog              = 'X'
    *      list_name              = 'Testing Purpose Only' "l_list
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc EQ 0.
      NEW-PAGE PRINT ON
      NEW-SECTION
      PARAMETERS pripar
      ARCHIVE PARAMETERS arcpar
      NO DIALOG.
    ELSE.
      write:/ 'Unable to create spool'.
    ENDIF.
    So now a spool is created with the required print parameters...
    The list that is created from here will be in the spool.
    Once the list is completed, close it with NEW-PAGE PRINT OFF.
    Hope this helps.
    Regards
    Eswar

  • Dissociate default printer driver from the report viewer

    Hello,
    I have a problem in reports visualization. I set the report paper size via the code:
    _printOptions.PaperSize = CrPaperSizeEnum.crPaperSizePaperCsheet;
    The problem is when i visualize it it's truncated to the printer default paper size. How could i resolve this. I tried the DissociatePrinter option and it didn't help.
    I'm working with .NET RAS SDK and C#.
    Edited by: Rahma Sayari on Feb 20, 2012 9:35 AM
    Edited by: Rahma Sayari on Feb 20, 2012 9:44 AM

    What version of CR?
    What version of .NET?
    WEB or Win app?
    See KB 1386475 and 1490938 (use the search box in the top right corner)
    Also note that the paper size enum may be (most likely will be) different for each printer driver. Thus retrieving the paper size enum and setting that to printOptions.PaperSize may be something worth trying.
    Searching for 'printoutputcontroler' may also get you additional resources.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • "Run Report" form error befor running XML report

    I created XML report (Concurret Programs with Output Format XML), created XML file as Data definition and RTF template, and will Output in Excel. When open Run Request and choose XML report, before Parametr form is opened, get 2 error:
    FRM-41084: Error getting Group Cell
    FRM-41072: Cannot create Group req_layout
    Help me, where is Problem?
    Edited by: Sega99 on 2010.26.1 02:41

    hi
    Please post u r thread in report forum. thanks.
    Sarah

  • How to add prompt before running the report in ssrs such that it generates a report bases on the input having different parameters as filters ?

    Hi,
    I would like to give a prompt in SSSRS report so that report is generated based on the prompt (no default
    value is taken)and the generated report should have different parameters as filters (except the initial prompt parameter).
    Thanks & Regards,
    Ganesh

    Thank Santosh for responding.
    I was looking for similar thing but I want to navigate to another report when view report is clicked on the report and pass my parameters from initial report.
    Can we keep any action on view report button on the report??
    Thanks & Regards,
    Ganesh

  • Default Printer Retained In Report

    I have a report that was designed in Crystal Reports on a development workstation and configured to use the system default printer.  When this report is moved to the shared production server and accessed by a user on another workstation through a 3rd party app, the report defaults to the original printer instead of that workstation's default system printer even though the printer it defaults to is not configured on that workstation.  I have not been able to find a setting in Crystal that says preserve the default printer setting.
    Any ideas appreciated.
    Fuskie
    Whose user is extremely frustated by this as it only seems to happen on some reports and not others, though he cannot find any difference between the ones that do and the ones that don't...

    Hi Fuskie,
    You'll have to check with the third party app developer but the only option in CR would be to open the report up and possibly check on the option to No Default printer. But need to know what version of CR you and the third party app are using?
    Thank you
    Don

  • OBIEE execute stored procedure to load tables before running report

    Hi..
    I want to execute a stored procedure to load database tables before running a report in OBIEE .
    I need to pass 2 parameters to the stored procedure which loads into tables.
    In the Connection Pool --> Connection Script Tab --> Execute before query, I wrote the below query using the repository variables VAR1 & VAR2 to execute the
    DECLARE VAR1 number; VAR2 number;
    BEGIN
    schema_name.package_name1.package_body('VALUE OF(VAR1)', 'VALUE OF(VAR2)'); COMMIT;
    schema_name.package_name2.package_body('VALUE OF(VAR1)', 'VALUE OF(VAR2)'); COMMIT;
    END;
    I am receiving the following error to declare the schema_name.package_name
    +++Administrator:2a0000:2a0004:----2010/06/21 14:29:00
    -------------------- Sending query to database named ACBS-OCC (id: <<49419>>):
    BEGIN schema_name.package_name1.package_body1('VALUE OF(VAR1', 'VALUE OF(VAR2'); COMMIT; schema_name.package_name2.package_body2('VALUE OF(VAR1)', 'VALUE OF(VAR2)'); COMMIT;END;
    +++Administrator:2a0000:2a0004:----2010/06/21 14:29:00
    -------------------- Query Status: Query Failed: [nQSError: 16001] ODBC error state: S1000 code: 6550 message: [Oracle][ODBC][Ora]ORA-06550: line 1, column 7:
    PLS-00201: identifier 'SCHEMA_NAME.PACKAGE_NAME1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06550: line 1, column 93:
    PLS-00201: identifier 'SCHEMA_NAME.PACKAGE_NAME2' must be declared
    ORA-06550: line 1, column 93:
    PL/SQL: Statement ignored.
    [nQSError: 16015] SQL statement execution failed.
    Please suggest how to declare and execute the stored procedure.
    Thanks in advance.

    Hi,
    I know that any Function / Procedure needs to be called using a EVALUATE function in OBIEE.
    Thanks,
    Vijay

  • How to run a procedure before executing the report in BI Publisher

    Dear All,
    I got a requirement when I should execute a procedure before running the report.
    Here is my requirement
    I have created a temp table and created a stored procedure (temp_proc) which will insert sysdate value.
    create table temp (emp_name varchar(10));
    create or replace procedure temp_proc
    is
    begin
    insert into temp values(sysdate);
    commit;
    end;
    I have written a query in the Data Model section with a new Dataset as SQL Query Type. Now I want to run this report so that the procedure should be executed and it should insert a value in the temp table. I cannot create a datatemplate instead of sql query as it will consume more time.
    I am using BI Publisher 10.1.3.4.2 Standalone version. Please help me out.

    Hi,
    better to ask a question about BI Publisher in BI Publisher Forum than here in Reports Forum.
    You can create a template in your rtf wich you reference in your header. With BI Desktop in Winword you can use a different header for first page than the others.
    Regards
    Rainer

  • When using "Print Report" my default printer changes.

    Hello,
    I have the need to print two different kinds of reports to two different printers depending on which report it is.  I use the Office toolkit and wire the correct printer for the report using the "Print Report" tool.  However, each time I do this, it changes the default printer in Windows to the printer wired.  I don't want to change the default printer just send the report to the specified printer.  Is there a work around?
    LV 8.0 through 2013, Win 7
    CLA

    Hi The Q,
    a workaround could be to read first which the default printer is, then print your page with the printer you want and then reset the stored printer to default. The information which printer is the default printer can be read from the registry.
    Hope this helps.
    Mike

Maybe you are looking for

  • ?? Bad registry creation after install Oracle 8.1.7 / Developer 6i

    Hello, I posted a previous message here regarding a problem starting the Oracle services in my laptop, after installing Developer 6i. Well I now know what happened: When I installed Oracle Enterprise, I specified ORAOi as the ORACLE HOME (in C:\oracl

  • How do I get a DVD made with imovie by someone else imported into my imovie

    A friend from out of town recorded a 2 hour video of my band performing. He imported the video from his camcorder into imovie on his mac and burned it into a DVD and destroyed the original files. I have the DVD and would like to import into my mac in

  • What is dummy G/L a/c

    Hi, hi, 1. Can any one please explain me “At the time of transactional data uploading do we need to create ”.dummy G/L . What is dummy G/L a/c.How maney we have to create. 2. If yes how many dummy G/L a/c do need to create. 3. Please provide me what

  • Losing upgrade eligibility without buying a new phone?

    I am currently on a family plan, but I'm not the account owner. Our family is wanting to split our plan different ways (the account owner wants to switch vendors), while I am very happy with Verizon and want to stay. We're currently on a Verizon mont

  • Settings for AWT/Swing

    Hi, since I saw a lot of simmilar questions but could not find an answer to any of them, let's try a different approach. Can anyone be so kind as to post a small source code that for example just opens a JOptionPane.showInputDialog or any other very