Skip to Content
avatar image
Former Member

My crystal report is showing blank

I am using crystalreports 13 with asp.net 4.6 in windows server 2012..
But My report is not generating even crystal report viewer is not rendering.heck my

you can check it online at:
http://www.yeraha.biz/reports/testreport.aspx

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

using System.Data.SqlClient;

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

{

King king = new King();

protected void Page_Load(object sender, EventArgs e)

{

CrystalDecisions.CrystalReports.Engine.ReportDocument rd = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

ordersdataset ods = new ordersdataset();

DataSet ds = new DataSet();

SqlDataAdapter da = king.getdataadapter("select * from [order_send]");

//da.Fill(ods);

da.Fill(ods, "order_send");

int n = ods.Tables["order_send"].Rows.Count;

// da.Fill(ds, "order_send");

string url = Server.MapPath("./labels.rpt");

rd.Load(url);

rd.SetDataSource(ds);

CrystalReportViewer1.ReportSource = rd;

CrystalReportViewer1.RefreshReport(); ;

}

}

Here is my code

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Apr 13, 2016 at 12:51 PM

    Moved to .NET SDK forum

    Move your code to Page_Init

    What patch level are you using?

    Don

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2016 at 12:27 PM

    I tried but problem persists..
    I actually not getting the problem..

    Add comment
    10|10000 characters needed characters exceeded