How to refresh a crystal report automatically ?

I deployed my website(asp.net/c#) in IIS 7.5, when i click on the button to open the page that contain the report, i get a blank page but when i refresh the page (F5) it's ok. my question is: how can i open the page that contain the report file directly
without refresh?

Tricky to guess without seeing any code.
Here's some example code which fills and shows a report.
protected void Page_Load(object sender, EventArgs e)
ReportDocument rd;
DataTable dt = (DataTable)Session["xxxxx"];
// Tricky bit here is to make the name of the datatable match what the report expects
dt.TableName = "DataTable1";
rd = new ReportDocument();
rd.Load(Server.MapPath("Reports\\xxxxReport.rpt"));
rd.SetDataSource(dt);
rd.Refresh();
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.RefreshReport();
CrystalReportViewer1.DisplayGroupTree = false;
Please don't forget to upvote posts which you like and mark those which answer your question.
My latest Technet article - Dynamic XAML

Similar Messages

  • How to Call a Crystal Report from Form 6i?

    Dear All,
    Can anybody tell me how to call a crystal report, designed using Crystal Report 9, in form 6i? I tried one solution by using the host command but it was not working properly. The code I was tried is like:
         f_name varchar2(240);
         f_name :='C:\Program Files\Crystal Decisions\Crystal Reports 9\crw32.exe D:\Form16\Form16_Rep\bin\Debug\Form_16_character_emp.rpt';
                   host(f_name);
    This open the crystal report in design view. So how we call a report which run automatically like in .Net. How to pass the connection info of the database schema?
    Thanks & Regards
    Sunil

    Hi
    First see the built in run_product function.
    You can create a parameter list, add the
    "MAXIMIZE" paramter in it and then call your
    report with run_product passing your parameter list in it.
    hence the called report will be maximized.
    null

  • How to create a crystal Report using C# and SQL Server

    Hi, im new in creating crystal report using SQL Server, and im making a project.. and could someone help me how to connect your .sdf (SQL Server File) from the bin to your crystal report? thanks a lot.. i followed some instructions like this one (https://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?forum=csharpgeneral)
    but i got an error on the adding of server name and database portion.. thanks a lot in advance

    Hello,
    Crystal Reports are supported on
    http://scn.sap.com/community/crystal-reports.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to get a Crystal report as an iview in Portal

    Hi,
    Please let me know how to get a crystal report to Portal.
    Regards,
    Pradeep

    Hi,
    I used URL iview option to get the crystal report in portal and am able to view it. Thank you all for your inputs.
    But as of now SSO is not configured between BOE and BI system, so when i click on URL iview initially it asks me for credentials to BOE InfoView and after entering that it again asks for BI login as the data has to be picked from BI server.
    We are going to configure SSO mean while i just want to know whether it is possible to pass the id and passw as parameters to this url iview, if so what are the parameter id's i need to maintain to pass id and passw.
    Let me know on this.
    Regards,
    Pradeep
    Edited by: pradeep balam on Jul 29, 2011 8:34 AM

  • How to open the crystal reports 2008 in CRYSTAL REPORTS ENTERPRISE 4.0

    Hi All,
    Can you please let me know how can migrated the crystal reports from BO XI 3.1 to SAP BO 4.1 and after migrate how to open the crystal reports 2008 in CRYSTAL REPORTS ENTERPRISE 4.0.
    can you please help on this and if document please share.
    Thanks,
    Rajesh

    Use the upgrade management tool to move from 3.1 reports to BO 4.1. After migration, open the report in crystal enterprise 4.0, you will get a message saying that the report will be converted to latest version, will not be able to view from older version after converting. (Similar words- not sure exact words).

  • How to publish a Crystal Report in Business One

    Hi
    Please can anyone tell me how I publish a Crystal report (which is now inbuilt in SAP B1) so it is available to all users?  I have full administrator/manager user rights. I have so far created the report and saved it to my SAP server machine on it's C:drive.
    Thank you very much for any help and info.
    Matt

    Hi, I worked out how to do it. I had to first enable the Crystal Add on from within SAP and then open the Crystal Reports Administration menu under Administration and then select "Manage Crystal Reports". From there you can browse to the report you have created and select the module for where you want it to appear under in SAP.
    Edited by: matth76 on Jun 25, 2009 4:14 PM

  • How Can I call Crystal report from R3?

    Hi experts,
      How Can I call Crystal report from R3?

    Hi Bill,
    Can you please be specific and could you please provide the steps
    Thank you

  • How to get one crystal report to work with two different backends?

    We have a software that can work with either SQL2008 or Visual Fox Pro backend.  We are trying to compile One Crystal report that will work with either of the two backends.  How to you make sure that your Crystal Report is compiled so that it will work with both backends?
    Right now my reports were originally created using the SQL2008 backend and are retaining the DBO reference in the statement, which then will not allow the Crystal report to work with the VFP backend.

    You can write your data sets as a command using hand coded SQL. As long as "dbo" is the only schema used in your SQL Server database, you don't need to specify it in the SQL. SQL Server will automatically assume the dbo.
    The 2nd thing... The SQL needs to be 100% compatible with both SQL Server 2008 AND VFP.  This will limit the list available functions to those that are common to both platforms AND work exactly the same in both platforms.
    The other part is to make sure you are using an ODBC type connection instead of OLD/DB. That way all of the connection properties are set on the local machine and the report is simply looking for the System DSN name.
    HTH,
    Jason

  • How to run a crystal report in SAP Crystal Reports 2011

    I've installed SAP Crystal Reports 2011. I can't figure out how to run a crystal. What replaces the lightning bolt used in previous versions of crystal? I'm I missing something?

    Hi Tim,
    You may:
    1) Press F5
    2) Go to Report > Refresh Report (Notice the icon beside the label)
    3) Go to View > Print Preview
    4) Or, click the refresh button on the toolbar
    5) The icon on Point#2 is also available on the toolbar
    -Abhilash

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

  • How to add in crystal report

    hi i am developing a web application , i am using crystal report plugin in eclipse europa editor .
    my problem is that , there is a table which has a date colunm and i am adding all the dates together by using
    sum(DateDiff("yyyy",{Birth_date},{death_date)) as a function
    i am getting the data by record filter but above formula showing me only result for the last record , what happening to other records , i don't know.
    so please guide me .
    Thanks in advance...........                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Rizwan,
    You can't with the report itself because once the refresh is complete it requires a full refresh to update any page. And there is no option to for example refresh just the subreport.
    RAS SDK has samples on how to add subreports, see the OverView tab for a link to the samples, but it still requires a refresh to be called.
    One way may be to use Subreports on Demand, URL's to another report.... Each subreport would run individually without refreshing the main report. It would like a Table Of Contents report though.
    So to be clear, adding pages is the same thing as adding more data. Problem is most of the data needs to be complete so that summaries and running totals etc. type of objects require the data to be complete to be able to render each page.
    So why do you need to do this? Can you explain your workflow?
    Don

  • Unable to refresh a crystal report on BOE which connect to an excel

    Hi,
    I have a crystal report which connect to an excel sheet on network. I am able to open it locally and refresh it. But after I upload it to the BOE, open it from infoview, I am not able to refresh it. it prompts for the database connection info.
    I created an ODBC connection (choose MS excel and point to the excel file on network drive) on the BOE Server, it did not ask me for the login info and the server is responding. I also added this connection to BOE. But when I refresh the report from either infoview or CMC, it ask me for the database connection info with user login.
    What should I do to solve this?
    Thanks,
    Vicky

    Hi,
    The data source is an excel sheet in a network drive. I am able to refresh this report from my client computer, but after upload it to BOE, the report cannot be refreshed. The datasource configuration of this report is like the following:
    Server:      
    server1\folder\excel.xls
    Database: 
    server1\folder\excel.xls
    User: 
    Password:
    Because no user name and password are required to open the excel, I leave it blank. But when I refresh the report, it said that "the database logon information for this report is either incomplete or incorrect."
    How can I be able to refresh this report from BOE?
    Thanks,
    Vicky

  • How to Retrieve a Crystal Report's Unmanaged Destination Filename

    Hi all,
    I have looked very closely at Robert Twigg's response to the post "[Destination Path and name of a scheduled Report|http://forums.sdn.sap.com/thread.jspa?messageID=9588160#9588160]" dated 9/1/10 and while it does retrieve the unmanaged destination path, the filename retrieved is the managed filename.  How does one go about retrieving an instance's unmanaged filename?
    When I look at a Crystal Report instance details, it definitely knows what the unmanaged filename that was populated, here is a sample instance detail:
    External Destination: File copy the instance with the filename: "ALOG_Deferred_Clearing_RPT_2011-12-13-11-43-09.pdf" to the folder: "/apps/efs_bobj/IMPL/XX" .
    As you can clearly see, the filename consists of report name, date, and time that was specified as "%SI_NAME%_%SI_STARTTIME%.%EXT%" in the destination filename.
    Here's the snippet to retrieve the managed filename:
    IInfoObject report = (IInfoObject) reports.get(0);
    // Get the file name from the instance.
    IFiles files = (IFiles) report.getFiles();
    IFile file = (IFile) files.get(0);
    Any insight on how to retrieve an instance's unmanaged filename would be highly appreciated.
    Thanks in advance,
    Hart Penn
    Edited by: hartpenn on Dec 14, 2011 2:14 PM
    Edited by: hartpenn on Dec 14, 2011 2:15 PM
    Edited by: hartpenn on Dec 14, 2011 2:19 PM

    Thank you for your response.  I am querying for the report instances using the query below:
    IInfoObjects iRptObjects = infoStore.query("SELECT * FROM CI_INFOOBJECTS " +
                                               "Where SI_KIND='Pdf' AND " +
                                               "SI_INSTANCE>0 ");
    Collection<IInfoObject> iRptObjs = iRptObjects;
    for (IInfoObject iRptObj : iRptObjs) {
        ISchedulingInfo iSchedInfo = iRptObj.getSchedulingInfo();
        IEvents triggerEvents = iSchedInfo.getDependants();
        if (triggerEvents.size() > 0) {
            for (int j=0; j < triggerEvents.size(); j++) {
                IInfoObjects events = (IInfoObjects)infoStore.query("SELECT * FROM CI_SYSTEMOBJECTS " +
                                                                    "Where SI_KIND='Event' AND " +
                                                                    "SI_ID=" + (Integer) triggerEvents.get(j));
                if (events.size() > 0) {
                    IEvent curEvent = (IEvent)events.get(0);
        IDestinationPlugin destPlugin =
            (IDestinationPlugin) infoStore.query("Select Top 1* from CI_SYSTEMOBJECTS " +
                                                 "Where SI_NAME = 'CrystalEnterprise.DiskUnmanaged'").get(0);
        IDestinations dests = iSchedInfo.getDestinations();
        Collection<IDestination> destObjs = dests;
        if (dests.size() > 0) {
            // we have a dest set up
            for (IDestination destObj : destObjs) {
                if (destObj.getName().compareTo("CrystalEnterprise.DiskUnmanaged") == 0) {
                    // Copy the destination properties to the destination plugin.
                    destObj.copyToPlugin(destPlugin);
                    // Get the scheduling options for the unmanaged disk.
                    IDiskUnmanagedOptions diskUnmanagedOptions =
                        (IDiskUnmanagedOptions) destPlugin.getScheduleOptions();
                    // Get the destination files
                    List destFiles = diskUnmanagedOptions.getDestinationFiles();
                    String pathName = (String)destFiles.get(0);
        IFiles iFiles = (IFiles) iRptObj.getFiles();
        IFile myFile = (IFile) iFiles.get(0);
        logger.debug("Object: " + iRptObj.getTitle() +
                     ", ID: " + iRptObj.getID() +
                     ", Kind: " + iRptObj.getKind() +
                     ", Trigger Event: " + curEvent.getEventName());
        logger.debug("Dest: " + pathName);
        logger.debug("Filename: " + myFile.getName());
    while this is not efficient, it does retrieve the instances. However, the file name returned is not what was specified in the destination filename. Here is some info returned and displayed:
    Object: ALOG_Deferred_Clearing_RPT, ID: 128776, Kind: Pdf, Trigger Event: EVT_121311_114308
    Dest: /apps/efs_bobj/IMPL/XX/%SI_NAME%_%SI_STARTTIME%.%EXT%
    FileName: ~ce46086dd492ac788.pdf
    As you can see, the filename is clearly the managed filename.
    Edited by: hartpenn on Dec 14, 2011 3:43 PM
    Edited by: hartpenn on Dec 14, 2011 4:02 PM
    Edited by: hartpenn on Dec 14, 2011 4:03 PM
    Edited by: hartpenn on Dec 14, 2011 4:17 PM
    Edited by: hartpenn on Dec 14, 2011 4:26 PM
    Edited by: hartpenn on Dec 14, 2011 4:27 PM
    Edited by: hartpenn on Dec 14, 2011 4:28 PM

  • How to create a crystal report using secured web service as a datasource?

    Hi All Expert,
    I having some challenges on how to create a report using secured web service as a datasource in crystal report designer (CR11 R3).
    Secured Web Service including the certificate trusting, token authentication, header and/or body encryption. All web services running on https protocal.
    Could you please suggest me on the solution?
    Thank you and Best Regards,
    Cherr

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • 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

Maybe you are looking for

  • HELP! I think I have malware but can't find it...

    So I've been searching for the last two days and I feel like I've read everything from DNS Poisoning to RootKit hacks but I can't seem to figure out my problem. Here's what I've been facing: About once or twice a day, at random points, my browser ope

  • [SOLVED] xorg whoes, once more

    Like some other  i am trapped with the update to xorg 7.3, too. First my xorg.conf: # Refer to the xorg.conf(5x) man page for details about the format of # this file. # Module section -- this section is used to specify # which dynamically loadable mo

  • Problem with Motion Menus

    I'm using iDVD 6.0.4 and am having a problem with the menu system. Everything is fine, and the project is about ready to burn, however whenever I go to add a still picture for the background of the two Chapters selection screens, the Motion Menus tim

  • Weblogic Server exception help

     

  • Premiere corrupted the audio track of XDCAM EX

    I am very new to Premiere.  I received a file from a friend who wants me to convert the video to NTSC DV widescreen.  I imported the MP4 file and added it to the timeline.  I was able to convert fine with exception to an aspect ratio issue.  So, I de