You must Sign In to post a response.
  • Category: ASP.NET

    CrystalReport not displays in browser

    Hi, Iam using CrystalReport in my application.iam using VS2010. connections are working fine and . my problem is after adding crystal report and set connection, add a webpage and drag a CrystalReportViewer from tool box and wrote following code in load event

    ReportDocument reportdocument = new ReportDocument();

    reportdocument.Load(Server.MapPath("~/CrystalReport.rpt"));

    CrystalReportViewer1.ReportSource = reportdocument;



    it is not showing crystalreport in browser. and not showing any error.

    How to solve this

    Regards

    Baiju
  • #762666
    Hello Baiju,

    Refer the below link for your reference :

    http://www.dotnetspider.com/resources/46189-Insert-and-Retrieve-images-to-the-Crystal-Report-using-asp-net-from-database.aspx


    I have created one article based on Crystal Report in browser for ASP.NET

    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762673
    Hai Baiju,
    It seems the path which you are using for the Crystal Report is not correct.
    Try to give the full path and check the same. hope it will load in that case as sometime the application can't get the path of the report and in that case, it will not show you the error and not load the report also.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #762709
    I have tried this also
    reportdocument.Load(@"D:\1school and travel backup\WebSites\Street\CrystalReport.rpt");

    still not working

  • #762710
    Hello Baiju,

    Share your full code and snapshot also. Did you check your dataset or datatable when you are retrieving data and putting in crystal report. I suggest you to check it first by putting break point in your code.

    Hope it will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762712
    Hi
    plz find my attached code.
    I haven't used dataset and datatable(typed dataset).
    simply connected crystal report with table in sqlserver.


    Regards
    Baiju

    CrystalReport.rar

    Delete Attachment

  • #762714
    Hello Baiju,

    I didn't find any data for your crystal report.

    I have 32 bit system and you are using 64 bit so might be it's not compatible with my system.

    If you are using VS2010 than download crystal report from this link :
    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0.exe

    If Crystal Report is installed, the viewer might be of the older version. Customize the toolbox and add the viewer of version 13.

    As you have multiple Crystal versions installed on the same machine, all of these co-exist in the GAC. The problem is that you most likely have multiple references to CrystalDecisions.Web dll in the config file of your application.

    Delete all assembly references and add only version 13 references.


    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762723
    Hi friend following is the version
    <%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

  • #762727
    Hi Nirav,
    Finally i solved.
    here is solution
    http://stackoverflow.com/questions/16172114/sap-crystal-reports-viewer-does-not-display-in-browser


This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.