locked
Crystal Report Graph View Problem RRS feed

  • Question

  • User-456111751 posted

    Hi

    while creating the asp.net website application i tried using visual studio 2005

    file-->new -->website-->asp.net crystalreports website -->

    and later Created a Crystal report graph which on preview shows data along with Default.aspx as another option for displaying reports but when i try the report from URL

    The Report Chart is not displayed which is visible in preview of reports but not on the browser do i need to have an .dll as reference to the vs project .

    What am i missing ?

    Code Is:

    using System;

    using System.Data;

    using System.Configuration;

    using System.Collections;

    using System.Web;

    using System.Web.Security;

    using System.Web.UI;

    using System.Web.UI.WebControls;

    using System.Web.UI.WebControls.WebParts;

    using System.Web.UI.HtmlControls;

    using CrystalDecisions.ReportSource;

    using CrystalDecisions.Web;

    using CrystalDecisions.CrystalReports.Engine; // The only really nessesary I guess !

    using CrystalDecisions.Shared;

    public partial class CrystalReportGraph : System.Web.UI.Page

    {

    protected void Page_Load(object sender, EventArgs e)

    {

    }

    protected override void OnPreRender(EventArgs e)

    {

    ReportDocument report = new ReportDocument();

    report.Load(Server.MapPath("crystalreportgraphview.rpt"));

    //report.SetDatabaseLogon("username", "pwd", @"server", "database");

    rptviewer.ReportSource = report;

    }

    }

    Wednesday, May 12, 2010 2:36 PM

Answers

  • User-2080168305 posted

    well i have a book. There is all thing For charts in Chapter 3. u can get ebook of this book.

    Wrox Professional-Crystal-Reports-for-Visual-Studio-NET-2nd-Edition

    http://www.wrox.com/WileyCDA/WroxTitle/Professional-Crystal-Reports-for-Visual-Studio-NET-2nd-Edition.productCd-0764557300.html



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 14, 2010 2:04 PM

All replies

  • User-456111751 posted

    Any Help guys..

    The chart is not getting displayed, i just get an x mark. 

    My Aspx code is:

    <body>

    <form id="form1" runat="server" style="background: lightgreen;">

    <table cellpadding="0" cellspacing="0" width="100%">

    <asp:Button ID="Sample1" runat="server" Text="Advanced Layout Report" OnClick="Sample1_Click" />

    <tr>

    <td>

    <CR:CrystalReportViewer ID="rptviewer" DisplayGroupTree="False" runat="server" AutoDataBind="true" />

    </td>

    </tr>

    </table>

    </form>

    </body>

     

    Thursday, May 13, 2010 8:32 AM
  • User-2080168305 posted

    well it is not depending upon this code that u posted.

    it is depending on Crystal Report.rpt file.



    Friday, May 14, 2010 1:55 PM
  • User-2080168305 posted

    well i have a book. There is all thing For charts in Chapter 3. u can get ebook of this book.

    Wrox Professional-Crystal-Reports-for-Visual-Studio-NET-2nd-Edition

    http://www.wrox.com/WileyCDA/WroxTitle/Professional-Crystal-Reports-for-Visual-Studio-NET-2nd-Edition.productCd-0764557300.html



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 14, 2010 2:04 PM
  • User-2080168305 posted

    u can download the souce code, displaying in Book in each chapter/lesstion from this link.

    http://www.wrox.com/WileyCDA/WroxTitle/Professional-Crystal-Reports-for-Visual-Studio-NET-2nd-Edition.productCd-0764557300,descCd-DOWNLOAD.html



    Friday, May 14, 2010 2:07 PM
  • User-456111751 posted

    THanks for your Help on this. I have the RPT file which displays the  chart on Preview but on the webpage its not getting displayed. If you need the RPT file i can send it.

    Friday, May 14, 2010 2:13 PM
  • User-2080168305 posted

    ya u can send me on my id. u can get my id from my profile.



    Friday, May 14, 2010 3:02 PM
  • User1728334258 posted

    I resolved the Crystal Chart issue by Enabling ASP.NET Impersonation and Windows Authentication. Also I disabled the default Anonymous Authentication. All these settings I made it for Authentication under Crystalreportviewers virtual directory in IIS manager.<o:p></o:p>

    Wednesday, May 19, 2010 4:43 PM