on 04-13-2016 12:51 PM
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
Moved to .NET SDK forum
Move your code to Page_Init
What patch level are you using?
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried but problem persists..
I actually not getting the problem..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See if any of these help:
- Ludek
Senior Support Engineer Product Support, Global Support Center Canada
Follow me on Twitter
Got Enhancement ideas? Use the SAP Idea Place
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.