Refresh Crystal Report

How to refresh Crystal Reports using command line. Please provide the exact syntax for following cases....
1. Simple report
2. Report with parameter
We have only Crystal Report. We want to create a Batch file which will refresh all report without opening each individual reports.

Hi Rakesh
As per the issue description, you want to run the report using Command Line. This functionality was available till CR 8; however after CR 8.5 it is not supported.
The only option I can suggest you is that you need to develop an application using Java or .NET languages.
To get better assistance on this I request you to post this thread on Java or .Net forum.
The links to these forums are as follows:
For .NET: .NET SDK Application Development
For Java: Java SDK Application Development
Hope this helps!
Thanks

Similar Messages

  • Refresh Crystal Report Viewer By JavaScript or JQuery

    hii every body here ...
    i need to can refresh the crystal report viewer with javascript or jquery as like [refresh button] on toolbar
    so i need to do that without using standard refresh button on toolbar or by server side code only by java script code is this possible or not
    thanks for the repliers ...

    thanks for replay my best friend but i need the below :
    i using asp.net web application with crystal report 13
    i use crystal report viewer on web page so ...
    when i display the report some button inside the crystal report viewer toolbar like [refresh] button
    i need to click this button by javascript/jquery becuase i will fire it on page_load from jquery
    when page load from javascript [client side] i will fire the refresh button ....
    soo if this an soluation can let me do this task or not
    remember that : i dont need to refresh the report from server side methods .
    thanks alot

  • Unknown error when executing MDX when refreshing Crystal Report with BEx

    Hello Experts,
    I have created a Crystal Report (Crystal 2008 SP1) with BEx Query (7.10) and have been able to refresh successfully when the SAP_ALL authorization is included in my user role. I don't want my end users to have SAP_ALL so I created a role and assigned the authorizations recommended in the SAP Integration Kit for BusinessObjects 3.1 Install Guide.
    When I run the report as one of the users assigned to my new role I get the following error in the trace file.
    ERROR: .\crdb_bwmdx_execution.cpp [200]: l_bapiGetStreamInfo failed with return code RFC_RC = 0 Exception:  BAPI Error: BAPI Error #:0
    Unknown error when executing MDX
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    I tried all the Fix Packs (ie 1.1., 1.2 and 1.3) for XI 3.1 Integration Kit to try resolving the error but it didn't work.
    The same query works fine in BEx Web when running as one of the users in the new role I created for Crystal Report users.
    Are there any other Authorizations that I need to include in the role?
    Cheers.
    Paul.

    We have been able to identify what causes the MDX driver to error and I will explain what we are trying to implement with the hierarchies.
    Firstly, we are creating reports of the HR cube Mutliprovider using the SAP MDX Driver which works well when there are no authorization analysis set on the cube. But with the authorization analysis set for on 0ORGUNIT for BEx Explorer Crystal returns the MDX error.
    Each of the Business Unit managers are assigned to an Organization Unit that will be used to restrict the employees that will be reported. To restrict the Managers to only see their Org Unit we have set the 0ORGUNIT object to use authorization ananlysis and a custom authorization variable to return only data for the Org Unit they belong too.
    In Crystal this works well when a manager has an Org Unit that is a head department of other Org Units. This scenario will give Crystal the NodeID and Parent NodeID to create the hierarchies in the report. But when a manager does not have any other Org Units beneath there own department then Crystal doesn't have a Parent NodeID to create the Hierarchies with the NodeID. In the RFC trace I can see an error when Crystal is trying to get the Parent NodeID but the user is not authorized to that Org Unit then it throws the error.
    We have got a temporary workaround which is to create the managers a dummy Org Unit below their own department. The workaround will do for now but shouldn't the MDX driver be able to recognise that it has returned the last level in the Org Unit Hierarchy and not return an error?
    The customer is looking for a product fix as they believe this should be handled by the driver. Is this a bug or a limitation of the product?
    Paul.

  • How to automatically refresh crystal report's viewer content

    Hello,
    How can I force a periodic reload of the contents of a report as displayed in crystal reports viewer? (without clicking anywhere)
    The idea is simply to update the content of the screen with fresh data, that could be used as a monitoring screen.
    The update must not require user intervention (no clicking, no prompting for parameters).
    We are using a jsp page CrystalReportsViewer.jsp , CRJ update 2
    I assume this is quite standard, and that there is a way using a javascript reload function, but I cannot find any example anywhere.
    Does someone know how to do this?
    Thanks in advance!
    Matt

    There's no public API on the client-side JavaScript to trigger the refresh button, but I do know some people trap the HTTP traffic (using something like Fiddler or Charles) to figure out what to do, then inject JavaScript.
    I personally don't have any sample codes for this.
    Sincerely,
    Ted Ueda

  • Crystal Reports 2011 on BI 4.0 server.

    Hello All,
    I would request your valuable assistance on the below issue:
    Environment:
    - BI 4.0 Sp02 Patch 7
    - Oracle 11g (64 bit) for Reporting
    - Windows Server 2008
    Description:
    I have installed CR 2011 designer on the BI 4.0 server machine. The reporting database is Oracle 11g (64 bits). Both oracle 32 bit and 64 bit client is installed on the BI server.
    When connected through CR 2011 designer to create a report using oracle 32 bit native libraries, I am able to create and refresh crystal reports. Once saving the report to BI 4.0 enterprise and refreshing the report from CMC or BI Launchpad, the report throws below error:
    (Error: "The viewer could not process an event. Error in file ps_xxxxx.rpt: failed to load database information. [] -
    Error Code:0 [CRWEB00000119]").
    To resolve the issue I made following changes with in the environment variables:
    ORACLE_HOME = 64 bit path
    ORACLE_HOME32 = 32 bit path
    LIBPATH = 64 bit path
    LIBPATH32 = 32 bit path
    BOE_USE_32BIT_ENV_FOR = ORACLE_HOME, LIBPATH
    Once making the above changes and restarting the SIA, the crystal report started working with in CMC.
    But now the report started throwing 'ORA-12157' error when ever trying to connect to Oracle server through 32 bit connection with in CR 2011 designer.
    When troubleshooting the issue further, I found that the report only works from CR 2011 Designer when all other environment variables are removed except ORACLE_HOME32 path but this leads to the report to fail in CMC.
    Can we have a crystal report working in both CR 2011 designer and CMC with all the environment variables intact.
    Any help on this would be much appreciated..
    Regards,
    Phanindra Kollipara

    Hello,
    CR 2011 is a 32 bit application and therefore requires the 32 Oracle Client. BOE 4.0 is 64 bit only and therefore requires the 64 bit Client.
    The problem is the order in which CR and BOE finds the Oracle Client, because they are not truely side by side supported. CR uses the Registry and the PATH statement to find the client.
    For example: First one CR Designer looks in the PATH and registry for is the 32 bit client Oracle OCI.dll and that is the version the OS loads first into memory. If you change the order then the first Oracle OCI.dll is loaded from the 64 bit PATH and now BOE works and CR fails.
    I don't see any way around this other than developing Reports on a stand alone PC with ONLY the 32 bit Oracle Client and then publishing the reports to BOE where ONLY the 64 bit client is installed.
    There should be no difference in configuration, CR/BOE should work in their respective platforms....
    Don

  • Crystal Report Not Refreshing in browser

    Hi all,
    Am using crystal report for my web application so here am passing my parameter from jsp page
    but it is not refreshing
    For example
    I am select Month=jan my query goes this way.
    Select * from employee where month='jan' group by department order by designation
    when am intially design in eclipse in filter option am selecting 'jan' and when am running in browser am passing the same query with the parameter but here instead of 'jan' am passing month variable where my month variable changes every time according to user choose
    my crystal report is not getting refreshed ..
    hope u understood my problem
    Regards
    Vanishree.B

    Hi Tejomay ,
    I have tried that even after calling refresh() , it ;s not getting refreshed..but if am using signal table in my query  it is getting refreshed .but when am grouping with another table it is not refreshing..
    Regards
    Vanishree

  • Cannot refresh a stored procedure within a Crystal Report from Xcelsius

    Please help...Xcelsius 2008 & Live Office problem...
    What I am trying to do is to refresh a stored procedure that is within a Crystal report from within my Xcelsius dashboard in Preview mode. The data returned appears on the Xcelsius dashboard. It works fine in Design mode, just not in Preview or when published as a swf.
    1. I set up a Crystal Report using a Stored Procedure as the data provider.
    2. The Stored Procedure has a parameter built into it.
    3. When the report is refreshed within Crystal, the prompt dialog box is displayed; I fill in the desired value, and run. Everything comes back fine.
    4. Crystal Report is exported to the repository.
    5. In Excel, I inserted the Crystal Report using Live Office. It shows up as a Live Office object just fine.
    6. I bound an Excel cell to the prompt; when you change the value in the bound cell, the Live Office object refreshes and displays the correct results.
    7. In Xcelsius, I imported the Excel spreadsheet.
    8. I set up a Text component that is bound to the cell containing the parameter value. Also set up a Grid to display the results, and a Connection Refresh button to call the refresh. Added a Live Office Data Connection pointing to the Web Service URL for the report.
    Note: When in Designer mode, if the value of the bound cell is changed, the results in the grid change accordingly.
    9. When in Preview mode (or generated swf), if the Refresh button is pressed, a "User Identification" dialog box appears asking me to log on. The values it asks for are: System, User Name, Password, and Authentication. I enter the same credentials as are within the Live Office settings in Excel, (which are working correctly), but receive an error "soapenv:Server.generalException: Database logon failed.".
    Note - all the id's are synced up - Business Objects, Database, etc.
    I've tried all kinds of combinations, but nothing gets me past this error. If I use any other server than the one listed under System in Live Office, the error message is "soapenv:Server.generalException: Server XXXXX not found or server may be down".
    I've noticed that in Excel directly, when I open the spreadsheet and refresh the Live Office object, I am prompted to log on to the database where the stored procedure is being executed. This dialog box does not appear once the Excel sheet has been imported into Xcelsius. One of the combinations I tried in the "User Identification" dialog box was the name of the database server, that didn't work either.
    I also tried creating the Live Office object directly within the Excel spreadsheet in Xcelsius, but then I was unable to bind the prompt value. Could never get the Live Office/Properties menu to appear.
    Ideas? Thoughts?
    Thanks in advance!
    Stephanie

    This post looks like a duplicate of: Live Office: Database logon failed error

  • Report Not Refreshing in Crystal Reports Server 2008

    I created a report and posted it on Crystal Reports Server 2008.  I have since updated the report's selection expert and I want the new criteria to be updated.  When I right click on the report and choose Refresh Options I have chosen to update and refresh the report but when I try to schedule it again it keeps the old select expert statement.  I have gone back to the report to ensure the change was taken and it was.  In fact if I delete the report and repost it then it does show the correct criteria.  Does anyone have any idea's as to why this is happening.  Thanks.

    A simple solution to avoid the font issue: Draw a box on the report, and put an X in (on top of) the box to check it if value is true.
    Or
    A formula that is an X if true or F if false.  Format the font to be white if not an X, and put a box around it.
    Edited by: DebiHerbert on Oct 8, 2010 1:19 PM

  • Crystal Report doesn't prompt for SAP credentials / errors out on refresh

    2 Environments tested with same results:
    <p>
    BOE XI 3.1 SP2 & BOE XI 3.1 SP2 FP2.5<br>
    SAP Intg Kit on mirrored SP/FP levels in each environment.
    <p>
    We've been successfully creating Crystal Reports against BEx queries in BW for months now as well as ECC master data.  We've also built universes and have WebI reports actively working against similar BEx queries in the same.  However, we're getting some curious behavior when we refresh the Crystal Reports against BEx queries in BW.  Verified all necessary transports and authorizations have been provided for both authoring, as well as refreshing/viewing on demand, etc.
    <p>
    We've setup all the Crystal Reports we're testing to:
    <p>
    a) Use custom database logon information specified here.<br>
    b) Specify a custom driver, leveraging the crdb_bwmdx driver<br>
    c) Prompt the user for database login
    <p>
    We have not enabled SNC as of yet.
    <p>
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server. 
    <p>
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    <p>
    However:
    <p>
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials.  We immediately get the "LOV" prompts.  Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through.  However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data.  Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to.  An error is then spit back.  We run the same queries with the same users within SAP and get normal behavior.  It's as though as soon as we apply security to the query the mdx driver doesn't like it.  Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    <p>
    Interactive Viewer: "Error in File %reportname%: Encapsulating Page Failed"<br>
    Java Viewer:  "Error in File %reportname%: Database Connection Error"
    <p>
    Nothing glaring in the event logs on the BO servers or in the Crystal logs that I can see, however just because it isn't spitting a specific error in the crystal logs doesn't mean I'm not missing something because I don't know what to look for behavior wise. To reduce the liklihood that it has to do with the way the report was built, we've tried against the same query by building a report using standard methods, as well as the SAP Toolbar using a very plain jane report.  Same behavior.
    <p>
    Thoughts?
    Edited by: Jay Riddle on Mar 1, 2010 8:55 PM

    Hi,
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server.
    >> Which authentication are you using to logon to InfoView ? Whats the configuration in the Universe Connection for Authentication ?
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    >> The user is using which authentication ? and against which system does he log on ?
    However:
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials. We immediately get the "LOV" prompts. Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through. However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data. Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to. An error is then spit back. We run the same queries with the same users within SAP and get normal behavior. It's as though as soon as we apply security to the query the mdx driver doesn't like it. Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    >> The user is using which authentication ? and against which system does he log on ?
    >> You mentioned security restrictions and I assume we talk about BI authorizations in form of data level security. If so - does the BW query include the authorization variables ?
    Ingo

  • Crystal report : refresh

    i have called crystal report from the from using DDE as follows.....
    declare
    AppID PLS_INTEGER;
    begin
    AppID := DDE.App_Begin('C:\Program Files\Crystal Decisions\Crystal Reports 9\crw32.exe Report2G.rpt', DDE.APP_MODE_MINIMIZED);
    end;
    .... now this is working fine...
    but after crystal report is opened, when i press refresh to get upto date data, it opens the dialog box... displaying user name, SID, but one has to enter password...
    so how can this be avoided... evry time we refresh... it should not ask for password...
    can any1 help...?

    Well, first, the ReportEngine code you are using is only for Webi and Deski.  You may want to start by looking at the RAS and Enterprise sections of the this [wiki|http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications]

  • Crystal Reports - Works in FireFox...Not in IE...Need to Refresh Data

    I am using a servlet and beans to fill a series of JSP pages. On the final page, the data is displayed in reports with a print button for each report. The user is supposed to be able to click on the indivudual button and print only the one report they request. The button part is working fine, and the code is as follows:
    <input type="button" value="Print Report" title="Print Report # <%= headerId %>" onClick=location.href="jrs_set_parameters.jsp?headerId=<%= headerId %>">
    The problem is the data in the Crystal Report is not being refreshed in IE, until I click the refresh icon. It works fine in FireFox. I have tried all sorts of things in my code to refresh the data in IE, but nothing seems to be working. I have found other suggestions on this site, and contacted Crystal Reports Support, but I'm getting nowhere with this.
    I did find that if I changed my IE settings as follows:
    IE, Tools, Internet Options, Connections, LAN Settings, Advanced, and under Exceptions added javadev*, which is the first part of my link, it will pull the correct report every time. The only problem is that I can't ask all of the users to make this change, just to get this to work right.
    I am about to start pullin my hair out soon! Does anybody know what has to be done in this situation? Please help!

    Problem solved! It had to do with the way our network people were caching Internet Explorer on the server.

  • Issues with Infoview data refresh on Crystal Reports based on BW BeX query

    Hi all,
    We applied the Business Objects XI3.1 fix pack 3.1 with Integration toolkit fix pack 3.1 in our environment.
    After that we started having trouble with Crystal Reports based on BeX queries that use manual input variables.
    The data refresh would not work in Infoview.
    The data refresh would work using the Crystal Reports designer gui on local machine.
    regards,
    Abhishek

    Hi all,
    This thread is for the benefit of all the BW/BO people who faced issues with BO reports not working after certain fix pack installations.
    After lot of time spent in debugging this and researching and some help from SAP, we found that BASIS had missed a step in the BO patching. This step was relating to applying some BW transports in the BW system related to the new Integration toolkit.
    Please use below notes for the BW transport task of patching BOE Integration toolkit.
    Refer to Note#1472104 which explains about loading the
    transports when we install BO Service Packs or Fix Packs. Also please refer to the Note#1271751 for the advice on transports for BW systems.
    Please go through page 206 (Configuring transports) in the SAP Integration Kit installation guide. You can download this document at below link.
    https://websmp106.sap-ag.de/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf
    Refer to Note#1345919 which explains about the process of loading transports for SAP IK.
    regards,
    Abhishek

  • Database Connector Error : when refreshing the crystal report in Infoview

    Hi,
        I've created a crystal report on SAP R/3 tables and the report is refreshing fine in my local system. But however when I publish the report to the BOE, and when I try to refresh the report it gives the error:
    Error in File <file name>: Database Connector Error. I'm using Crystal reports 2008 and the BOE is XI 3.1.
    How can I solve this?
    Thanks,
    Sanjay

    Hey folks,
    i suppose  we are facing the same error. But where do i check if the key for the server-side integration kit has expired? There is no explicit key in our CMC.
    We use BOE XI 3.1.
    Thanks in advance!

  • Automatic refreshing and saving of Crystal reports

    Post Author: whaworth
    CA Forum: General
    Hi
    I have a number of reports >100 that need to be refreshed each month
    I am using Crystal reports XI professional edition and want to know how to either build a batch file to run them all, or if there are any tools I can use.
    At the moment it is all done manually, which takes many many hours to do.
    any advice would be gratefully recieved.
    thanks
    Will

    Post Author: KenHamady
    CA Forum: General
    There are 3rd party tools out there that do this.  For a complete list of 3rd party tools for Crystal Reports see the following link:
    http://www.kenhamady.com/bookmarks.html

  • Scheduling of Crystal report or allowing user to refresh

    I am the only person in my organization that has Crystal Reports. Normally I just develop and run the reports for my users. I have a report I have developed that one of my users needs to be able to refresh and update the parameters. I am trying to come up with the simplest, least expensive way to make this possible. It is my understanding that Crystal Reports Viewer will only let him look at the report, not refresh it, unless I have Crystal Reports server. I saw some other products on the Internet that say they would provide the capability I need, but are pretty expensive. The only other option I can think of is getting his own copy of Crystal, save my report definition onto a folder on our server, and just let him run it with his own desktop copy of Crystal.  Anyone have any better ideas?  Thanks.

    Please re-post if this is still an issue to the Business Objects Forum or if you have a valid support contract create a case on line.
    You can set the option for the users not to be able to hit the refresh button or export to any format will also not give them the option to refresh

Maybe you are looking for